[crosscompiling] howto configure libstdc++ to build only one from multi-lib configuration.
Ian Lance Taylor
ian@airs.com
Thu Jan 13 17:58:00 GMT 2005
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
More information about the Gcc
mailing list