This is the mail archive of the crossgcc@sourceware.org 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]

how to build static toolchain with crosstool-ng?


Can anyone tell me how to build a statically linked toolchain using
crosstool-ng?  Prior to building I tried setting the following two env
vars (per the crosstool howto at
http://www.kegel.com/crosstool/current/doc/crosstool-howto.html) but the
toolchain is still using shared libs.

export BINUTILS_EXTRA_CONFIG="LDFLAGS=-all-static"
export GCC_EXTRA_CONFIG="LDFLAGS=-static"

Here's the output from file on the cross gcc:

/home/lance # file arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc
arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc: ELF 32-bit LSB
executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.8,
dynamically linked (uses shared libs), not stripped

Thanks in advance,
Lance


--
For unsubscribe information see http://sourceware.org/lists.html#faq


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