summaryrefslogtreecommitdiffstats
path: root/sys/dev/aic7xxx
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2010-08-17 20:39:28 +0000
committerrpaulo <rpaulo@FreeBSD.org>2010-08-17 20:39:28 +0000
commitf63ab9228e0818135be1431b017306e2062147ae (patch)
treee9956831a046982571c4a2200db030fbab894a73 /sys/dev/aic7xxx
parentb449f3828322f9f90a73e893ab857f0773d9832c (diff)
downloadFreeBSD-src-f63ab9228e0818135be1431b017306e2062147ae.zip
FreeBSD-src-f63ab9228e0818135be1431b017306e2062147ae.tar.gz
For every instance of '.if ${CC} == "foo"' or '.if ${CC} != "foo"' in
Makefiles or *.mk files, use ${CC:T:Mfoo} instead, so only the basename of the compiler command (excluding any arguments) is considered. This allows you to use, for example, CC="/nondefault/path/clang -xxx", and still have the various tests in bsd.*.mk identify your compiler as clang correctly. ICC if cases were also changed. Submitted by: Dimitry Andric <dimitry at andric.com>
Diffstat (limited to 'sys/dev/aic7xxx')
-rw-r--r--sys/dev/aic7xxx/aicasm/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/aic7xxx/aicasm/Makefile b/sys/dev/aic7xxx/aicasm/Makefile
index 9c73493..c077285 100644
--- a/sys/dev/aic7xxx/aicasm/Makefile
+++ b/sys/dev/aic7xxx/aicasm/Makefile
@@ -24,7 +24,7 @@ WARNS?= 5
DEPENDFILE= .depend_aicasm
.endif
-.if ${CC} == "icc"
+.if ${CC:T:Micc} == "icc"
CFLAGS+= -restrict
NOSTDINC= -X
.else
OpenPOWER on IntegriCloud