This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [crosscompiling] howto configure libstdc++ to build only one from multi-lib configuration.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]