This is the mail archive of the 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]

Making CrossTool Build Static ToolChain


In short:
Had no luck supplying the BINUTILS_EXTRA_CONFIG in configure script with the "LDFLAGS=-all-static" it just ment that it used that option for the first configure scripts but left it out in all the others.

So I removed that option from the configure script and first made it make all configure scripts with "make configure-host", and after that supplied it with the BINUTILS_EXTRA_CONFIG in the make line.

I just removed the GCC_EXTRA_CONFIG from the configure script and put it after the
make line instead, otherwise it still kept doing dynamic.

Havent tried this on any other platforms than the SH3 but im guessing it should fit atleast a few platforms.

Dan, Perhaps using BINUTILS_EXTRA_CONFIG & GCC_EXTRA_CONFIG isnt the best way to enable static. Perhaps a BINUTILS_EXTRA_MAKE & GCC_EXTRA_MAKE? That way a user could enable static toolchain by adding :

#Unrem to make static

Best wishes
Kristoffer Ericson

--- 2005-07-10 02:47:29.000000000 +0200
+++ /work/downloads/crosstool-0.37/ 2005-07-17 22:21:17.000000000 +0200
@@ -347,10 +347,11 @@
mkdir -p build-binutils; cd build-binutils

if test '!' -f Makefile; then
+ ${BINUTILS_DIR}/configure $CANADIAN_BUILD --target=$TARGET --host=$GCC_HOST --prefix=$PREFIX --disable-nls $BINUTILS_SYSROOT_ARG

+make configure-host
make install

if test x"$CORE_PREFIX" != x"$PREFIX"; then
@@ -457,7 +458,6 @@
        --with-local-prefix=${SYSROOT} \
        --disable-multilib \
        --with-newlib \
-        ${GCC_EXTRA_CONFIG} \
        --disable-nls \
        --enable-threads=no \
@@ -468,7 +468,7 @@

test "$CANADIAN_BUILD" = "" || make $PARALLELMFLAGS all-build-libiberty || true
-make $PARALLELMFLAGS all-gcc
make install-gcc

cd ..
@@ -577,7 +577,6 @@
# --disable-nls to work around crash bug on ppc405, but also because embedded
# systems don't really need message catalogs...
${GCC_DIR}/configure $CANADIAN_BUILD --target=$TARGET --host=$GCC_HOST --prefix=$PREFIX \
--with-local-prefix=${SYSROOT} \
--disable-nls \
@@ -618,7 +617,7 @@

make install

# FIXME: shouldn't people who want this just --disable-multilib in final gcc and be done with it?

Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

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