summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/boot2/Makefile
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2010-08-31 17:33:29 +0000
committerdim <dim@FreeBSD.org>2010-08-31 17:33:29 +0000
commit91d6577035ff8a76eed147586c9f7b74ee24413f (patch)
tree3c22aeaf0604f6ade189489c03112b66eaa10bcd /sys/boot/i386/boot2/Makefile
parent42170bf6d6b1aa24e8b524672f3bbaf280e7e7c9 (diff)
downloadFreeBSD-src-91d6577035ff8a76eed147586c9f7b74ee24413f.zip
FreeBSD-src-91d6577035ff8a76eed147586c9f7b74ee24413f.tar.gz
Use a more robust way to substitute gcc for clang, when compiling
gnu/lib/libobjc and sys/boot/i386/boot2, so it also works when using absolute paths and/or options, as in CC="/absolute/path/clang -foo". Approved by: rpaulo (mentor)
Diffstat (limited to 'sys/boot/i386/boot2/Makefile')
-rw-r--r--sys/boot/i386/boot2/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/boot/i386/boot2/Makefile b/sys/boot/i386/boot2/Makefile
index bff4647..74aab82 100644
--- a/sys/boot/i386/boot2/Makefile
+++ b/sys/boot/i386/boot2/Makefile
@@ -3,7 +3,9 @@
.include <bsd.own.mk>
# XXX: clang can compile the boot code just fine, but boot2 gets too big
-CC:=${CC:C/^cc|^clang/gcc/}
+.if ${CC:T:Mclang} == "clang"
+CC=gcc
+.endif
FILES= boot boot1 boot2
OpenPOWER on IntegriCloud