From 59ee7b15e3ffc20a60a4a4c6dfa6f3375c1b5592 Mon Sep 17 00:00:00 2001 From: Mate Soos Date: Wed, 2 Dec 2015 21:28:12 +0000 Subject: Removing -fstack-protector-strong for clang <= 3.4 It's not supported and breaks compilation. This affects in particular Debian Jessie and probably all derived distros, too --- Makefile.common | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile.common') diff --git a/Makefile.common b/Makefile.common index d3fd1e76..7b210118 100644 --- a/Makefile.common +++ b/Makefile.common @@ -5,6 +5,13 @@ include $(LEVEL)/Makefile.config # Include LLVM's Master Makefile config and rules. include $(LLVM_OBJ_ROOT)/Makefile.config +# Filters out -fstack-protector-strong which is not understood by clang 3.4 or below +# yet is present in Makefile.config of some distros such as Debian Jessie +ifeq ($(shell test $(LLVM_VERSION_MAJOR) -le 3 -a $(LLVM_VERSION_MINOR) -le 4; echo $$?),0) + CFLAGS := $(filter-out -fstack-protector-strong,$(CFLAGS)) + CXXFLAGS := $(filter-out -fstack-protector-strong,$(CXXFLAGS)) +endif + # Assertions should be enabled by default for KLEE (but they can still # be disabled by running make with DISABLE_ASSERTIONS=1 DISABLE_ASSERTIONS := 0 -- cgit 1.4.1