From: Ben Gras Date: Wed, 31 Aug 2005 11:56:16 +0000 (+0000) Subject: Fix for ./configure scripts that try to use gcc if any kind of gcc command X-Git-Tag: v3.1.0~231 X-Git-Url: http://zhaoyanbai.com/repos/%22/xml/v3/zones/static/sign.html?a=commitdiff_plain;h=226894508828b9391a5937bd97a919b870f3c83a;p=minix.git Fix for ./configure scripts that try to use gcc if any kind of gcc command is found --- diff --git a/commands/Makefile b/commands/Makefile index ebc4d283a..ff7def883 100755 --- a/commands/Makefile +++ b/commands/Makefile @@ -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 diff --git a/commands/scripts/gcc.sh b/commands/scripts/gcc.sh index 66d0828c7..5eaff2ca8 100644 --- a/commands/scripts/gcc.sh +++ b/commands/scripts/gcc.sh @@ -1,2 +1,3 @@ #!/bin/sh echo "GCC and the GNU utils are in /usr/gnu. Please adjust your \$PATH accordingly." +exit 1