X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage0%2Fpkg%2Fgcc;h=fab1a514723f2f6a6531a8d5930c2dfe86fd93b2;hb=b6f8c455b6b970c08eab79303c95acbc1506f61d;hp=ed373acf412bcefc82303472893328a2c517a4d0;hpb=d9ee6b9ce4580bd0bff4ba9618333e63018a5556;p=hvlinux.git diff --git a/stage0/pkg/gcc b/stage0/pkg/gcc index ed373ac..fab1a51 100644 --- a/stage0/pkg/gcc +++ b/stage0/pkg/gcc @@ -3,7 +3,7 @@ hvconfig_pre() { export AR=ar - export LDFLAGS="-Wl,-rpath,/cross-tools/lib" + export LDFLAGS="-Wl,-rpath,${CROSS_TOOLS_DIR}/lib" # Common options for passes 1 & 2 # --with-local-prefix: @@ -19,19 +19,20 @@ hvconfig_pre() # --with-native-system-header-dir=/tools/include # then GCC will search for system headers in: # /opt/toolchain/tools/include - CONFIGURE_OPTS+=" \ + CONFIGURE_OPTS=" \ + --prefix=/cross-tools \ --build=${CLFS_HOST} \ --host=${CLFS_HOST} \ --target=${CLFS_TARGET} \ --with-sysroot=${CLFS} \ - --with-local-prefix=/tools \ + --with-local-prefix=${TOOLS_DIR} \ --with-native-system-header-dir=/tools/include \ --disable-nls \ - --with-mpfr=/cross-tools \ - --with-gmp=/cross-tools \ - --with-isl=/cross-tools \ - --with-cloog=/cross-tools \ - --with-mpc=/cross-tools + --with-mpfr=${CROSS_TOOLS_DIR} \ + --with-gmp=${CROSS_TOOLS_DIR} \ + --with-isl=${CROSS_TOOLS_DIR} \ + --with-cloog=${CROSS_TOOLS_DIR} \ + --with-mpc=${CROSS_TOOLS_DIR} --with-system-zlib \ --enable-checking=release \ --disable-multilib" @@ -61,8 +62,8 @@ hvconfig_pre() # We will create a dummy limits.h so the build will not use the one # provided by the host distro: - mkdir -p /tools/include - touch /tools/include/limits.h + mkdir -p ${TOOLS_DIR}/include + touch ${TOOLS_DIR}/include/limits.h else CONFIGURE_OPTS+=" \ --enable-shared \ @@ -74,7 +75,7 @@ hvconfig_pre() --enable-libstdcxx-time \ --enable-threads=posix" - cd ${LFS_TMP}/${PACKAGE} + cd ${SRC_DIR} # Change the StartFile Spec to point to the correct library location: echo -en '\n' >> gcc/config/linux.h @@ -97,11 +98,11 @@ hvbuild() { if [ "x${HVLABEL}" = "x${GCC}-pass1" ]; then ${HVMAKE} all-gcc all-target-libgcc - ${HVMAKE} install-gcc install-target-libgcc + ${HVMAKE} DESTDIR=${LFS} install-gcc install-target-libgcc else ${HVMAKE} \ AS_FOR_TARGET="${CLFS_TARGET}-as" \ LD_FOR_TARGET="${CLFS_TARGET}-ld" - ${HVMAKE} install + ${HVMAKE} DESTDIR=${LFS} install fi }