diff options
Diffstat (limited to 'core/binary.mk')
-rw-r--r-- | core/binary.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/binary.mk b/core/binary.mk index a3e0c06..8918e47 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -153,6 +153,15 @@ ifeq ($(strip $(LOCAL_NO_FDO_SUPPORT)),) LOCAL_LDFLAGS += $(TARGET_FDO_CFLAGS) endif +#################################################### +## Add profiling flags if aprof is turned on +#################################################### +ifeq ($(strip $(LOCAL_ENABLE_APROF)),true) + # -ffunction-sections and -fomit-frame-pointer are conflict with -pg + LOCAL_CFLAGS += -fno-omit-frame-pointer -fno-function-sections -pg + LOCAL_CPPFLAGS += -fno-omit-frame-pointer -fno-function-sections -pg +endif + ########################################################### ## Explicitly declare assembly-only __ASSEMBLY__ macro for ## assembly source |