-----Original Message-----
From: Gilles Chanteperdrix [mailto:[email protected]] 
Sent: Thursday, August 13, 2009 9:17 AM
To: Charlton, John
Cc: [email protected]
Subject: Re: [Xenomai-help] pthread_setschedparam: Function not implemented
>
> These are the flags passed for "FULL_OPTIMAZATION". Obviously, one of 
> these optimizations messes up xenomai. In fact, if you look at the 
> Makefile, -O2 is used for the user programs, but not for the skins 
> libraries.
>
> The bitbake recipe now includes the following lines:
> # set CFLAGS and CXXFLAGS to ${CPPFLAGS} so that they just have the 
> appropirate -isystem flag, but no of the other -f flags, as they break 
> the posix skin library build export CFLAGS="${CPPFLAGS}"
> export CXXFLAGS="${CPPFLAGS}"
> export TARGET_CFLAGS="${CFLAGS}"
> export TARGET_CXXFLAGS="${CXXFLAGS}"
> ./configure --build=i686-angstrom-linux

This is wrong. Passing the flags to configure using environment variable is 
deprecated since even before the birth of the Xenomai project.
TARGET_CFLAGS and TARGET_CXXFLAGS are not used anywhere by Xenomai build system.
-- 
                                          Gilles


How does the xenomai configure script get the correct cross compiler settings?  
Is it just a matter of using --host to specify the target cross compiler?
./configure --host=i686-angstrom-linux 

I had some problems early on when the xenomai configure script would use the 
build system compiler rather than the cross compiler. Obviously the cross 
compiler has to be in the build environment path environment.  Is it best to 
leave all other compiler flags unset when running configure?

--John
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to