X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage0%2Fpkg%2Fgcc;fp=stage0%2Fpkg%2Fgcc;h=52bea6e2910c405ba93cb3fa0f05d5573b1e7692;hb=8b48f4c76a51852d45661e94e2fe9409b639899c;hp=1877e7c2641559e4bd8fb59e30931ae39ae97901;hpb=55986bfffd3882f3e7c960b46dc4f366e2d4e7a7;p=hvlinux.git diff --git a/stage0/pkg/gcc b/stage0/pkg/gcc index 1877e7c..52bea6e 100644 --- a/stage0/pkg/gcc +++ b/stage0/pkg/gcc @@ -31,6 +31,11 @@ hvconfig_pre() --disable-libssp \ --disable-threads \ --enable-languages=c" + + # 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 else CONFIGURE_OPTS+=" \ --enable-shared \ @@ -52,12 +57,6 @@ hvconfig_pre() # only: sed -e "s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include@g" \ -i gcc/Makefile.in - - if [ "x${HVLABEL}" = "x${GCC}-pass1" ]; then - # We will create a dummy limits.h so the build will not use the one - # provided by the host distro: - touch /tools/include/limits.h - fi } hvconfig_post()