Charlton, John wrote:
> >
> >
> > -----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.
Please stop answering below the '-- ' token, as this token is used to
separate the mail body from the signature, and since you post below it,
my mail client considers (rightly) your answer as a signature and strips
it when I try replying to you. So, I have to spend some time manually
reformatting your answer as you should have formatted it in the first place.
>
> 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?
You can pass arguments to configure, but on its command line, not using
environment variables. For instance:
./configure --host=i686-angstrom-linux CPPFLAGS=${CPPFLAGS}
And yes, the toolchain executables names are deduced from the value
passed to the --host flag. But you can override them on configure
command line too:
./configure --host=i686 CC=i686-angstrom-linux-gcc
etc...
--
Gilles
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help