X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fpkg%2Fgcc;h=ebca3feb14b6c27341486e81c7e8540d16a49a4b;hb=123a4b9f48445243382b252cc68c8e56320aa670;hp=85d8a73444b3d4fda08685f6464bb492c332ad43;hpb=b5bfb2006502b57fab234345a2393fd04e6d55ad;p=hvlinux.git diff --git a/stage1/pkg/gcc b/stage1/pkg/gcc index 85d8a73..ebca3fe 100644 --- a/stage1/pkg/gcc +++ b/stage1/pkg/gcc @@ -1,41 +1,22 @@ #!/bin/bash -CONFIGURE_OPTS="\ - --target=${CLFS_TARGET} \ - --disable-multilib \ - --with-local-prefix=/tools \ - --libexecdir=/tools/lib \ - --disable-nls \ - --disable-libstdcxx-pch \ - --enable-long-long \ - --enable-c99 \ - --enable-shared \ - --enable-threads=posix \ - --enable-__cxa_atexit \ - --enable-languages=c,c++ \ - ${CONFIGURE_OPTS}" - -hvpatch() -{ - # Manually applying patches if specified - if [ -n "${GCC_PATCHES}" ]; then - for p in ${GCC_PATCHES}; do - apply_patch ${PACKAGE}-${p}.patch ${PACKAGE} - done - fi - - case "${HVL_TARGET}" in - "x86") - apply_patch ${PACKAGE}-specs-1.patch ${PACKAGE} - ;; - "x86_64") - apply_patch ${PACKAGE}-pure64_specs-1.patch ${PACKAGE} - ;; - esac -} - hvconfig_pre() { + CONFIGURE_OPTS="\ + ${CONFIGURE_OPTS} \ + --target=${CLFS_TARGET} \ + --disable-multilib \ + --with-local-prefix=/tools \ + --libexecdir=/tools/lib \ + --disable-nls \ + --disable-libstdcxx-pch \ + --enable-long-long \ + --enable-c99 \ + --enable-shared \ + --enable-threads=posix \ + --enable-__cxa_atexit \ + --enable-languages=c,c++" + cd ${LFS_TMP}/${PACKAGE} # Change the StartFile Spec to point to the correct library location: