From 3df479e899ffd3c8fe415abb11628ec6dd08a82c Mon Sep 17 00:00:00 2001 From: thebeing Date: Thu, 22 Mar 2012 13:24:43 +0000 Subject: [PATCH] More robust compiler check. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a622a67..6c98267 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ CXXFLAGS += -fPIC -fexceptions CPPFLAGS += -DTYPE_DEPENDENT_DISPATCH -DGNUSTEP CPPFLAGS += -D__OBJC_RUNTIME_INTERNAL__=1 -D_XOPEN_SOURCE=500 -D__BSD_VISIBLE=1 -D_BSD_SOURCE=1 -ASMFLAGS += `if [ "$(CC)" = "clang" ] ; then echo -no-integrated-as ; fi` +ASMFLAGS += `if $(CC) -v 2>&1| grep -q 'clang' ; then echo -no-integrated-as ; fi` STRIP=`if [ "$(strip)" = "yes" ] ; then echo -s ; fi`