From: Denys Dmytriyenko <denis@denix.org>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] bitbake.conf: Simplify TARGET_CPPFLAGS/LDFLAGS
Date: Wed, 23 Feb 2011 23:37:07 -0500 [thread overview]
Message-ID: <20110224043707.GC17536@denix.org> (raw)
In-Reply-To: <AANLkTin-fKddL80Sn4m08AwayH4t0+EGmFMof72Rwueq@mail.gmail.com>
On Mon, Feb 21, 2011 at 10:21:12PM -0800, Khem Raj wrote:
> On Mon, Feb 21, 2011 at 5:14 PM, Tom Rini <tom_rini@mentor.com> wrote:
> > This is based on poky's ba2e1f4d933c37b372d6749d64614f2510ee9d7b, which
> > simplifies TARGET_CPPFLAGS (and thus CFLAGS) and TARGET_LDFLAGS
> > based on gcc any company having --sysroot
> >
> > Signed-off-by: Tom Rini <tom_rini@mentor.com>
>
> Acked-by:Khem Raj <raj.khem@gmail.com>
Tom, Khem,
This change seems to break external-toolchains, e.g. CodeSourcery Lite, at
least 2009q1 (gcc-4.3 based)...
I'm seeing issues like this in libxau:
| ./include/X11/Xauth.h:48:31: error: X11/Xfuncproto.h: No such file or directory
| ./include/X11/Xauth.h:49:27: error: X11/Xfuncs.h: No such file or directory
It cannot find standard X headers from OE sysroot.
Do I need to pass an extra --sysroot to CSL? Any other pointers?
Here's (hopefully useful) info from my toolchain:
$ arm-none-linux-gnueabi-gcc -print-sysroot
/opt/arm-2009q1/bin/../arm-none-linux-gnueabi/libc
$ arm-none-linux-gnueabi-gcc -print-search-dirs
install: /opt/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/
programs: =/opt/arm-2009q1/bin/../libexec/gcc/arm-none-linux-gnueabi/4.3.3/:/opt/arm-2009q1/bin/../libexec/gcc/:/opt/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi/4.3.3/:/opt/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/
libraries: =/opt/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/:/opt/arm-2009q1/bin/../lib/gcc/:/opt/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/lib/arm-none-linux-gnueabi/4.3.3/:/opt/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/lib/:/opt/arm-2009q1/bin/../arm-none-linux-gnueabi/libc/lib/arm-none-linux-gnueabi/4.3.3/:/opt/arm-2009q1/bin/../arm-none-linux-gnueabi/libc/lib/:/opt/arm-2009q1/bin/../arm-none-linux-gnueabi/libc/usr/lib/arm-none-linux-gnueabi/4.3.3/:/opt/arm-2009q1/bin/../arm-none-linux-gnueabi/libc/usr/lib/
--
Denys
> > ---
> > conf/bitbake.conf | 4 ++--
> > 1 files changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/conf/bitbake.conf b/conf/bitbake.conf
> > index f005658..ec20332 100644
> > --- a/conf/bitbake.conf
> > +++ b/conf/bitbake.conf
> > @@ -502,7 +502,7 @@ PATCHRESOLVE = 'noop'
> >
> > export BUILD_CPPFLAGS = "-isystem${STAGING_INCDIR_NATIVE}"
> > export CPPFLAGS = "${TARGET_CPPFLAGS}"
> > -export TARGET_CPPFLAGS = "-isystem${STAGING_DIR_TARGET}${includedir}"
> > +export TARGET_CPPFLAGS = ""
> > export SDK_CPPFLAGS = "-isystem${STAGING_DIR_SDK}${includedir} -isystem${STAGING_DIR_HOST}${includedir}"
> >
> > export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION}"
> > @@ -520,7 +520,7 @@ export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \
> > -Wl,-rpath,${STAGING_LIBDIR_NATIVE} -Wl,-O1"
> >
> > export LDFLAGS = "${TARGET_LDFLAGS}"
> > -export TARGET_LDFLAGS = '${@["-L${STAGING_DIR_TARGET}${libdir} -Wl,-rpath-link,${STAGING_DIR_TARGET}${libdir} -Wl,-O1 ${TARGET_LINK_HASH_STYLE}", "-Wl,-O1 ${TARGET_LINK_HASH_STYLE}"][bb.data.getVar('LIBTOOL_HAS_SYSROOT', d, 1) == "yes"]}'
> > +export TARGET_LDFLAGS = "-Wl,-O1 ${TARGET_LINK_HASH_STYLE}"
> >
> > export SDK_LDFLAGS = "-L${STAGING_DIR_SDK}${libdir} \
> > -Wl,-rpath-link,${STAGING_DIR_SDK}${libdir} \
> > --
> > 1.7.0.4
> >
> >
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> >
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
next prev parent reply other threads:[~2011-02-24 4:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-22 1:14 [PATCH 0/1] bitbake.conf: Simplify TARGET_CPPFLAGS/LDFLAGS Tom Rini
2011-02-22 1:14 ` [PATCH] " Tom Rini
2011-02-22 6:21 ` Khem Raj
2011-02-24 4:37 ` Denys Dmytriyenko [this message]
2011-02-24 15:57 ` Tom Rini
2011-02-24 16:47 ` Tom Rini
2011-02-24 23:39 ` [PATCH 1/3] bitbake.conf, native*.bbclass: pass --sysroot to TOOLCHAIN_OPTIONS Denys Dmytriyenko
2011-02-24 23:39 ` [PATCH 2/3] ffmpeg: pass --sysroot to configure script directly Denys Dmytriyenko
2011-02-25 1:22 ` Tom Rini
2011-02-24 23:39 ` [PATCH 3/3] gst-ffmpeg: remove 4-year old hack that sets CC directly Denys Dmytriyenko
2011-02-25 1:22 ` Tom Rini
2011-02-25 9:26 ` Koen Kooi
2011-02-25 1:21 ` [PATCH 1/3] bitbake.conf, native*.bbclass: pass --sysroot to TOOLCHAIN_OPTIONS Tom Rini
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=20110224043707.GC17536@denix.org \
--to=denis@denix.org \
--cc=openembedded-devel@lists.openembedded.org \
/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