proper fix for PROFILE=1 with clang (nw)

png2bdc was crashing because an implicitly enabled optimizations - see
http://llvm.org/bugs/show_bug.cgi?id=14713
This commit is contained in:
Oliver Stöneberg 2015-01-08 10:21:18 +01:00
parent 3908aa8ccf
commit 8ef233f78a

View file

@ -542,6 +542,11 @@ ifdef SYMBOLS
CCOMFLAGS += -g$(SYMLEVEL) -fno-omit-frame-pointer -fno-optimize-sibling-calls
endif
# we need to disable some additional implicit optimizations for profiling
ifdef PROFILE
CCOMFLAGS += -mno-omit-leaf-frame-pointer
endif
# add -v if we need verbose build information
ifdef VERBOSE
CCOMFLAGS += -v