From: Jan-Benedict G. <jb...@us...> - 2005-11-01 10:53:42
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27254 Modified Files: build_toolchain.sh Log Message: - Build a native gcc, too. - "Don't try this at home." It won't probably produce anything useful. Index: build_toolchain.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/build_toolchain.sh,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- build_toolchain.sh 31 Oct 2005 11:25:43 -0000 1.24 +++ build_toolchain.sh 1 Nov 2005 10:53:32 -0000 1.25 @@ -628,4 +628,36 @@ execute make ${MAKEFLAGS} \ prefix="${INSTALL_NATIVE_BASE}/usr" \ install-gas +popd + +# +# Build gcc to run on the target system +# +pushd "${GCC1_NATIVE_BUILD}" + # Configure + CC="${TARGET}-gcc" LDFLAGS=-static CFLAGS=-static \ + execute "${GCC_SRC}/configure" \ + --disable-multilib \ + --with-newlib \ + --disable-nls \ + --enable-threads=no \ + --disable-threads \ + --enable-symvers=gnu \ + --enable-__cxa_atexit \ + --disable-shared \ + --host="${TARGET}" \ + --build="`${BINUTILS_SRC}/config.guess`" \ + --host="${TARGET}" \ + --target="${TARGET}" \ + --prefix=/usr \ + --enable-languages="c${GCC1_EXTRA_LANGUAGES}" \ + ${WERROR} + + # Build + build "${BUILD_GCC1}" && execute make ${MAKEFLAGS} all-gcc + + # Install + build "${BUILD_GCC1}" && \ + execute make ${MAKEFLAGS} prefix="${INSTALL_NATIVE_BASE}/usr" install-gcc +popd |