This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [crosscompiling] howto configure libstdc++ to build only one from multi-lib configuration.
- From: Ian Lance Taylor <ian at airs dot com>
- To: Karel Gardas <kgardas at objectsecurity dot com>
- Cc: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: 13 Jan 2005 11:52:39 -0500
- Subject: Re: [crosscompiling] howto configure libstdc++ to build only one from multi-lib configuration.
- References: <Pine.LNX.4.43.0501131717330.761-100000@thinkpad.gardas.net>
Karel Gardas <kgardas@objectsecurity.com> writes:
> I'm just experimenting with libstdc++ for i386-rtems platform and since
> gcc builds libstdc++ for various sub-architectures of this platform (i486,
> pentium, athlon, k6, soft-float), I would like to ask you if it is
> possible to configure libstdc++ to not compile all these variants but just
> one.
When you run configure, use the --disable-multilib option.
> Also I would like to know if it is possible to use different
> optimization options (-Os instead of -O2) for libstdc++/libsubc++/libgcc.a
> builds.
When you build, set CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET to "-g
-Os" (you can omit -g if you don't want debugging information). E.g.,
make CFLAGS_FOR_TARGET="-g -Os" CXXFLAGS_FOR_TARGET="-g -Os"
Ian