diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-04-13 17:06:21 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-04-13 17:06:21 +0200 |
commit | 7297ef1c47935fb17e49cac8379908e631763566 (patch) | |
tree | b213a690a71fb199a9e4927b874d52b918a8bdb2 | |
parent | d1be15b3692841e022b1cd19adeffc5ff74d4349 (diff) |
use -O0 when debug on
-rw-r--r-- | mk/vars.mk | 2 | ||||
-rw-r--r-- | package/ffmpeg/Makefile | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/mk/vars.mk b/mk/vars.mk index 2f2ecc134..f3911044f 100644 --- a/mk/vars.mk +++ b/mk/vars.mk @@ -138,7 +138,7 @@ ifneq ($(ADK_DEBUG),) ifeq ($(ADK_DEBUG_OPTS),y) TARGET_CFLAGS+= -g3 -fno-omit-frame-pointer $(ADK_TARGET_CFLAGS_OPT) else -TARGET_CFLAGS+= -g3 -fno-omit-frame-pointer +TARGET_CFLAGS+= -O0 -g3 -fno-omit-frame-pointer endif else TARGET_CPPFLAGS+= -DNDEBUG diff --git a/package/ffmpeg/Makefile b/package/ffmpeg/Makefile index 6a3f60fdd..838ed551d 100644 --- a/package/ffmpeg/Makefile +++ b/package/ffmpeg/Makefile @@ -100,7 +100,11 @@ $(eval $(call PKG_template,FFSERVER,ffserver,${PKG_VERSION}-${PKG_RELEASE},${PKG $(eval $(call PKG_template,FFPROBE,ffprobe,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_FFPROBE},${PKGSC_FFPROBE})) #$(eval $(call PKG_template,FFPLAY,ffplay,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_FFPLAY},${PKGSD_FFPLAY},${PKGSC_FFPLAY})) +ifeq ($(ADK_DEBUG),y) +TARGET_CFLAGS:= $(subst O0,O2,$(TARGET_CFLAGS)) +else TARGET_CFLAGS:= $(subst Os,O2,$(TARGET_CFLAGS)) +endif TARGET_CPPFLAGS+= -D_POSIX_SOURCE -D_GNU_SOURCE ifeq ($(ADK_TARGET_CPU_WITH_MMX),y) |