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] |
Hi Arno; Thank you for the tip. I had read the archives relating to this several times before I came to the same conclusion. I had implemented this manually in crosstool-0.25 in a clumsy way. Dan suggested a much cleaner way but I just couldn't see how to do it that way. So now that there are these *EXTRAS variables there (thanks Dan!) I added it to my current config, which is currently: #!/bin/sh set -ex BINUTILS_EXTRA_CONFIG="LDFLAGS=-all-static" GCC_EXTRA_CONFIG="LDFLAGS=-static" TARBALLS_DIR=/general/tools/gnu/arm9/crosstool/component_tarballs RESULT_TOP=/general/tools/gnu/arm9/gcc_3.2.1 KERNELCONFIG=$PWD/arm.config TARGET=arm-arm9-linux-gnu TARGET_CFLAGS="-O" BINUTILS_DIR=binutils-2.14.90.0.7 BINUTILS_URL=http://www.kernel.org/pub/linux/devel/binutils GCC_DIR=gcc-3.2.1 GLIBC_DIR=glibc-2.3.1 GLIBCTHREADS_FILENAME=glibc-linuxthreads-2.3.1 LINUX_DIR=linux-2.4.21 export TARBALLS_DIR RESULT_TOP SRC_DIR KERNELCONFIG TARGET TARGET_CFLAGS BINUTILS_DIR BINUTILS_URL GCC_DIR GLIBC_DIR LINUX_DIR GLIBCTHREADS_FILENAME /bin/sh all.sh --notest Thanks, Ken On Sat, 2004-09-25 at 04:39, Arno Schuring wrote: > Hi Ken! > > >request: please update crosstool documentation/comments so that one > >knows how to generate a statically-liked cross compiler... > > > >I used to know how to do this, I'm searching through the crossgcc > >mailing list archives to find the answer...how to generate a > >statically-linked cross compiler using crosstool? > > From memory: > > for binutils, use > make configure-host ; make LDFLAGS="-all-static" > instead of > make > > for gcc, use > make LDFLAGS="-static" > for building one-pass, or > make BOOT_LDFLAGS="-static" bootstrap > for bootstrapping > > This will just build the toolchain static, but will allow you to build > dynamically linked executables. If you don't want/need that, you should pass > --disable-shared to all configure scripts. > > You probably don't need to build the intermediate gcc static. > > I haven't checked this, just hope I remember correctly ;) > Anyone feel free to correct me. > > > HTH, > Arno > > > Information without knowledge is noise > knowledge without wisdom is dangerous stupidity > > _________________________________________________________________ > Play online games with your friends with MSN Messenger > http://messenger.msn.nl/ > > > ------ > Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ > Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com ------ 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] |