again: fix cc detection
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 14 Feb 2003 10:21:52 +0000 (10:21 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 14 Feb 2003 10:21:52 +0000 (10:21 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2265 4a8a32a2-be11-0410-ad9d-d568d2c75423

support/regression/ports/host/spec.mk

index e1dd68f64676f75d61046e5b3eccc7f78b1153da..077e1df57e67ad508a44e550a7b6cd11fdbf85b2 100644 (file)
@@ -1,5 +1,5 @@
 # Port specification for compiling on the host machines version of gcc
-SDCC = $(shell which gcc > /dev/null || which cc)
+SDCC = $(shell ( sh -c "gcc --version" 2>&1 ) > /dev/null  && echo gcc || echo cc)
 SDCCFLAGS = -DPORT_HOST=1 -Wall -fsigned-char -DREENTRANT=
 
 EXEEXT = .bin