-Removed all ipkg_* functions and replaced them with a single ipkg function accepting...
[hvlinux.git] / stage0 / pkg / gcc
index c1eb6b0..423b932 100644 (file)
@@ -35,7 +35,7 @@ hvconfig_pre()
         --with-mpfr=/cross-tools \
         --with-gmp=/cross-tools"
 
-    if [ -n "${GCC_PASS1}" ]; then
+    if [ "x${HVLABEL}" = "x${GCC}-pass1" ]; then
         CONFIGURE_OPTS="${CONFIGURE_OPTS} \
             --disable-shared \
             --without-headers \
@@ -76,7 +76,7 @@ hvconfig_pre()
     sed -e "s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include@g" \
         -i gcc/Makefile.in
 
-    if [ -n "${GCC_PASS1}" ]; then
+    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
@@ -85,7 +85,7 @@ hvconfig_pre()
 
 hvbuild()
 {
-    if [ -n "${GCC_PASS1}" ]; then
+    if [ "x${HVLABEL}" = "x${GCC}-pass1" ]; then
         ${HVMAKE} all-gcc all-target-libgcc
         ${HVMAKE} install-gcc install-target-libgcc
     else