diff options
author | dim <dim@FreeBSD.org> | 2010-08-31 17:33:29 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2010-08-31 17:33:29 +0000 |
commit | 91d6577035ff8a76eed147586c9f7b74ee24413f (patch) | |
tree | 3c22aeaf0604f6ade189489c03112b66eaa10bcd /gnu/lib | |
parent | 42170bf6d6b1aa24e8b524672f3bbaf280e7e7c9 (diff) | |
download | FreeBSD-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 'gnu/lib')
-rw-r--r-- | gnu/lib/libobjc/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/lib/libobjc/Makefile b/gnu/lib/libobjc/Makefile index 3dc49d8..3513103 100644 --- a/gnu/lib/libobjc/Makefile +++ b/gnu/lib/libobjc/Makefile @@ -16,7 +16,9 @@ SRCS= archive.c class.c encoding.c gc.c hash.c init.c linking.m misc.c \ selector.c sendmsg.c thr.c thr-objc.c exception.c # XXX: clang cannot compile libobjc yet -CC:=${CC:C/^cc|^clang/gcc/} +.if ${CC:T:Mclang} == "clang" +CC=gcc +.endif INCS= encoding.h hash.h objc-api.h objc-decls.h objc-list.h objc.h runtime.h \ sarray.h thr.h typedstream.h NXConstStr.h Object.h Protocol.h |