From: bernhardheld Date: Fri, 14 Feb 2003 10:21:52 +0000 (+0000) Subject: again: fix cc detection X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=1fd4cd6fc84d59c208d9e7b64318599c82af334e;hp=2fcf3d6768c671cf2627dc5767cf2879c1a7a298;p=fw%2Fsdcc again: fix cc detection git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2265 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/support/regression/ports/host/spec.mk b/support/regression/ports/host/spec.mk index e1dd68f6..077e1df5 100644 --- a/support/regression/ports/host/spec.mk +++ b/support/regression/ports/host/spec.mk @@ -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