X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fpkg%2Fgcc;h=57af140556b88f5b13f32e13bd33d06e527db917;hb=b2caa476fe2b8b54e0952dfa11482004d1da4f33;hp=c6df1c70678fd4658c912a49e0c52c3b4a839a79;hpb=69ac3e7cf686f8e95e47a7ab89bc38796aace488;p=hvlinux.git diff --git a/stage1/pkg/gcc b/stage1/pkg/gcc index c6df1c7..57af140 100644 --- a/stage1/pkg/gcc +++ b/stage1/pkg/gcc @@ -1,26 +1,21 @@ #!/bin/bash -hvpatch() +hvconfig_pre() { - # Manually applying patches if specified - if [ -n "${GCC_PATCHES}" ]; then - for p in ${GCC_PATCHES}; do - apply_patch ${PACKAGE}-${p}.patch ${PACKAGE} - done - fi + 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++" - case "${HVL_TARGET}" in - "x86") - apply_patch ${PACKAGE}-specs-1.patch ${PACKAGE} - ;; - "x86_64") - apply_patch ${PACKAGE}-pure64_specs-1.patch ${PACKAGE} - ;; - esac -} - -configure_pre() -{ cd ${LFS_TMP}/${PACKAGE} # Change the StartFile Spec to point to the correct library location: @@ -35,7 +30,7 @@ configure_pre() gcc/Makefile.in.orig > gcc/Makefile.in } -configure_post() +hvconfig_post() { # Prevent GCC from looking in the wrong directories for headers and # libraries: