From 8ef233f78a3e4f2f3b82200ebd608be6cce44167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Thu, 8 Jan 2015 10:21:18 +0100 Subject: 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 --- makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/makefile b/makefile index 4e9891074bb..46f3404def2 100644 --- a/makefile +++ b/makefile @@ -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 -- cgit v1.2.3