From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v5] sconeserver: new package
Date: Wed, 19 Sep 2012 23:48:03 +0200 [thread overview]
Message-ID: <505A3D93.3040709@mind.be> (raw)
In-Reply-To: <1348044562-6762-1-git-send-email-spdawson@gmail.com>
On 09/19/12 10:49, spdawson at gmail.com wrote:
> +# Sconeserver configure script fails to find the libxml2 headers.
> +ifeq ($(BR2_PACKAGE_LIBXML2),y)
> + SCONESERVER_CONF_OPT += CPPFLAGS="-I$(STAGING_DIR)/usr/include/libxml2"
> +endif
> +
> +ifeq ($(BR2_PACKAGE_SCONESERVER_MYSQL),y)
> + SCONESERVER_CONF_OPT += LDFLAGS="-L$(STAGING_DIR)/usr/lib/mysql"
> +endif
I'd suggest using the following pattern:
SCONESERVER_CONF_OPT += CXXFLAGS="$(TARGET_CXXFLAGS) $(SCONESERVER_CXXFLAGS)"
SCONESERVER_CONF_OPT += LDFLAGS="$(TARGET_LDFLAGS) $(SCONESERVER_LDFLAGS)"
ifeq ($(BR2_PACKAGE_LIBXML2),y)
SCONESERVER_CXXFLAGS += -I$(STAGING_DIR)/usr/include/libxml2
endif
(Actually, this pattern should move to TARGET_CFLAGS itself... Yet another
item on my ideas list :-)
The mysql flags should move to the rest of the mysql stuff, so you have the
condition only once.
I tried building the mysql module and it also fails to find mysql.h. Turns
out that the configure script hard-codes -I/usr/include/mysql instead of using
the sysrooted path. I'm not sure how to fix it elegantly. Adding a -I
option to the CXXFLAGS works, but you still get a -I/usr/include/mysql which
may cause problems...
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
next prev parent reply other threads:[~2012-09-19 21:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-19 8:49 [Buildroot] [PATCH v5] sconeserver: new package spdawson at gmail.com
2012-09-19 21:48 ` Arnout Vandecappelle [this message]
2012-09-21 8:17 ` Simon Dawson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=505A3D93.3040709@mind.be \
--to=arnout@mind.be \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox