Do not pass on -ffunction-sections.

-ffunction-sections breaks the debugger on some platforms ... and does not help libCling at all.
This commit is contained in:
Philippe Canal 2014-03-19 16:42:59 -05:00 committed by sftnight
parent 68e01b936b
commit 8bdb34696e

View File

@ -58,7 +58,8 @@ INCLUDEFILES += $(CLINGDEP)
# 1) copy relevant headers to include/
# 2) rely on TCling to addIncludePath instead of using CLING_..._INCL below
CLINGLLVMCXXFLAGS = $(patsubst -O%,,$(shell $(LLVMCONFIG) --cxxflags))
CLINGCXXFLAGS += -I$(CLINGDIR)/include $(CLINGLLVMCXXFLAGS) -fno-strict-aliasing
# -ffunction-sections breaks the debugger on some platforms ... and does not help libCling at all.
CLINGCXXFLAGS += -I$(CLINGDIR)/include $(filter-out -ffunction-sections,$(CLINGLLVMCXXFLAGS)) -fno-strict-aliasing
ifeq ($(CTORSINITARRAY),yes)
CLINGLDFLAGSEXTRA := -Wl,--no-ctors-in-init-array