]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix for ./configure scripts that try to use gcc if any kind of gcc command
authorBen Gras <ben@minix3.org>
Wed, 31 Aug 2005 11:56:16 +0000 (11:56 +0000)
committerBen Gras <ben@minix3.org>
Wed, 31 Aug 2005 11:56:16 +0000 (11:56 +0000)
is found

commands/Makefile
commands/scripts/gcc.sh

index ebc4d283a6dad8b2834e354abf9bc7d6e0a9be52..ff7def88381e7da0083c13dbfb19f18a3179d82f 100755 (executable)
@@ -15,17 +15,22 @@ usage:
        @echo "       make biginstall # Install all big commands" >&2
        @false
 
+all install::
+       cd $(GZIP) && CC="$(CC)" /bin/sh ./configure --prefix=/usr/local && $(MAKE) $@
+
+clean::
+       [ -f $(GZIP)/Makefile ] && cd $(GZIP) && $(MAKE) $@
+
 bigall:
-       cd $(FLEX) && /bin/sh ./configure --prefix=/usr/local && bigmake all
-       cd $(GZIP) && /bin/sh ./configure --prefix=/usr/local && bigmake all
-       cd $(PYTHON) && /bin/sh ./configure --prefix=/usr/local && bigmake all
+       cd $(FLEX) && CC="$(CC)" /bin/sh ./configure --prefix=/usr/local && bigmake all
+       cd $(PYTHON) && CC="$(CC)" /bin/sh ./configure --prefix=/usr/local && bigmake all
        cd $(BZIP2) && bigmake all
        cd $(KERMIT) && bigmake all
 
 biginstall:
-       cd $(FLEX) && /bin/sh ./configure --prefix=/usr/local && bigmake install
-       cd $(GZIP) && /bin/sh ./configure --prefix=/usr/local && bigmake install
-       cd $(PYTHON) && /bin/sh ./configure --prefix=/usr/local && bigmake install
+       cd $(FLEX) && CC="$(CC)" /bin/sh ./configure --prefix=/usr/local && bigmake install
+       cd $(GZIP) && CC="$(CC)" /bin/sh ./configure --prefix=/usr/local && bigmake install
+       cd $(PYTHON) && CC="$(CC)" /bin/sh ./configure --prefix=/usr/local && bigmake install
        cd $(BZIP2) && bigmake install
        cd $(KERMIT) && bigmake install
 
index 66d0828c79239b177f1efe31b5ee2838e62cb72d..5eaff2ca8591924aa840440c90c0ed66ac514583 100644 (file)
@@ -1,2 +1,3 @@
 #!/bin/sh
 echo "GCC and the GNU utils are in /usr/gnu. Please adjust your \$PATH accordingly."
+exit 1