This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: testing uClibc patch


> Carl/Dan, do you have plans to provide a top level mechanism for tweaking 
> library options? I'm keen to configure uClibc without locale support - I 
> suspect that's what's bloated hello world to 295k.

uClibc comes with a great configuration system already.  It's very similar
to the Linux kernel configuration system.  Go to either your uClibc source
directory or build directory and do:

make menuconfig

Your configuration file is now stored in .config in whatever directory
you executed from.  Save that off somewhere else, and set the
UCLIBC_CONFIG (from memory, excuse me if that's not the exact name)
environment variable to the path to your stored .config when you're
setting all of crosstool's configuration variables.  Crosstool will now
build uClibc with that configuration.  If you want a minimal uClibc,
also throw "--enable-languages=c" into GCC_EXTRA_CONFIG.  If you build
a C++ compiler, crosstool adds back a few options to uClibc, without which
libstdc++-v3 won't build.  These options take some significant space, and
one of them is locale.  If you want a locale-free uClibc, you have to
forego C++ and tell crosstool to build C only.


                            -----Carl


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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