[oe] [PATCH] bitbake.conf: Simplify TARGET_CPPFLAGS/LDFLAGS

Tom Rini tom_rini at mentor.com
Thu Feb 24 15:57:19 UTC 2011


On 02/23/2011 09:37 PM, Denys Dmytriyenko wrote:
> 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 at 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 at mentor.com>
>>
>> Acked-by:Khem Raj<raj.khem at 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?

I've never not had to set:
TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}"

And then clear it on native/etc.  What's going on is that the CSL 
toolchain (and any other) was only finding stuff since we were spelling 
out where to look, and now we need to pass that information in again.

-- 
Tom Rini
Mentor Graphics Corporation




More information about the Openembedded-devel mailing list