From: Jan-Benedict G. <jb...@us...> - 2006-10-25 10:59:53
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv15136 Modified Files: build_toolchain.sh Log Message: Update the build script to also build gmp and mpfr, which are now needed in canadian cross types of GCC building... This support will probably be redone, moving the two packages out of the gcc source tree. Index: build_toolchain.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/build_toolchain.sh,v retrieving revision 1.66 retrieving revision 1.67 diff -u -d -r1.66 -r1.67 --- build_toolchain.sh 21 Mar 2006 19:13:22 -0000 1.66 +++ build_toolchain.sh 25 Oct 2006 10:59:46 -0000 1.67 @@ -22,7 +22,7 @@ # # Test if all required tools are installed. # -REQ_TOOLS="flex bison" +REQ_TOOLS="flex bison wget" for tool in ${REQ_TOOLS}; do if ! command -v $tool > /dev/null 2>&1; then echo "Error: $tool is required by `basename $0` but was not found on your system." >&2 @@ -511,6 +511,21 @@ [ "${DO_PATCHES_UCLIBC}" -ne 0 ] && execute try_patches.sh "uclibc" "${UCLIBC_SRC}" "${VAX_PATCHES_PATH}" [ "${DO_PATCHES_LINUX}" -ne 0 ] && execute try_patches.sh "linux" "${LINUX_SRC}" "${VAX_PATCHES_PATH}" +# +# Get libmpfr/libgmp +# +pushd "${GCC_SRC}" + wget -q http://www.mpfr.org/mpfr-current/mpfr-2.2.0.tar.gz + wget -q -O mpfr.patch http://www.mpfr.org/mpfr-current/patches + tar xzf mpfr-2.2.0.tar.gz + (cd mpfr-2.2.0 && patch -p1 < ../mpfr.patch) + + wget -q ftp://ftp.gnu.org/gnu/gmp/gmp-4.2.1.tar.bz2 + tar xjf gmp-4.2.1.tar.bz2 + (cd gmp-4.2.1 && patch -p1 < "${VAX_PATCHES_PATH}/gmp.patch") +popd + + # # @@ -753,6 +768,27 @@ # Build gcc to run on the target system # pushd "${GCC1_NATIVE_BUILD}" + pushd "${GCC_SRC}/gmp-4.2.1" + CC="${TARGET}-gcc" LDFLAGS=-static CFLAGS=-static \ + execute ./configure \ + --host="${TARGET}" \ + --prefix="${INSTALL_BASE}/usr" + execute make + execute make install + execute make install prefix="${INSTALL_NATIVE_BASE}/usr" + popd + pushd "${GCC_SRC}/mpfr-2.2.0" + CC="${TARGET}-gcc" LDFLAGS=-static CFLAGS=-static \ + execute ./configure \ + --host="${TARGET}" \ + --target="${TARGET}" \ + --prefix="${INSTALL_BASE}/usr" \ + --with-gmp="${INSTALL_BASE}/usr" + execute make + execute make install + execute make install prefix="${INSTALL_NATIVE_BASE}/usr" + popd + # Configure CC="${TARGET}-gcc" LDFLAGS=-static CFLAGS=-static \ ac_cv_func_strncmp_works=yes \ @@ -771,6 +807,8 @@ --target="${TARGET}" \ --prefix=/usr \ --enable-languages="c${GCC1_EXTRA_LANGUAGES}" \ + --with-gmp="${INSTALL_BASE}/usr" \ + --with-mpfr="${INSTALL_BASE}/usr" \ ${WERROR} # Build |