From b2d9df6e93f344ce02002f213af7c55188cf610e Mon Sep 17 00:00:00 2001 From: Pavel Cherenkov <pcherenkov@gmail.com> Date: Mon, 2 Jul 2012 12:43:41 +0400 Subject: [PATCH] disable -dumpspecs for clang --- third_party/luajit/src/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/third_party/luajit/src/Makefile b/third_party/luajit/src/Makefile index 28c16bd1fb..9777562b83 100644 --- a/third_party/luajit/src/Makefile +++ b/third_party/luajit/src/Makefile @@ -220,8 +220,10 @@ TARGET_ALDFLAGS= $(LDOPTIONS) $(TARGET_XLDFLAGS) $(TARGET_FLAGS) $(TARGET_LDFLAG TARGET_ASHLDFLAGS= $(LDOPTIONS) $(TARGET_XSHLDFLAGS) $(TARGET_FLAGS) $(TARGET_SHLDFLAGS) TARGET_ALIBS= $(TARGET_XLIBS) $(LIBS) $(TARGET_LIBS) -ifneq (,$(findstring stack-protector,$(shell $(TARGET_CC) -dumpspecs))) - TARGET_XCFLAGS+= -fno-stack-protector +ifneq (,$(findstring gcc,$(TARGET_CC))) + ifneq (,$(findstring stack-protector,$(shell $(TARGET_CC) -dumpspecs))) + TARGET_XCFLAGS+= -fno-stack-protector + endif endif TARGET_TESTARCH=$(shell $(TARGET_CC) $(TARGET_ACFLAGS) -E lj_arch.h -dM) -- GitLab