From: Hugo Villeneuve Date: Sat, 4 Oct 2014 03:18:02 +0000 (-0400) Subject: Refactor gcc limits.h file creation X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=8b48f4c76a51852d45661e94e2fe9409b639899c;p=hvlinux.git Refactor gcc limits.h file creation Also create directory before creating the file. --- 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()