From f2721def0501c1cbaad11f8366c5b20f440b7921 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 26 Apr 2015 04:09:01 -0500 Subject: make compiling with debug information non-default behavior As mentioned by Phil, a lot of disk space is needed nowadays to build OpenADK. Switch to non debug builds as default to save 2 GB for each default build. --- mk/vars.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mk') diff --git a/mk/vars.mk b/mk/vars.mk index 6f3f5d270..bf51a378b 100644 --- a/mk/vars.mk +++ b/mk/vars.mk @@ -237,12 +237,15 @@ TARGET_CFLAGS+= -mlongcalls -mtext-section-literals TARGET_CXXFLAGS+= -mlongcalls -mtext-section-literals endif -# add configured cflags for optimization +# add configured compiler flags for optimization TARGET_CFLAGS+= $(ADK_TARGET_CFLAGS_OPT) TARGET_CXXFLAGS+= $(ADK_TARGET_CFLAGS_OPT) -# always add debug information + +# add compiler flags for debug information +ifeq ($(ADK_BUILD_WITH_DEBUG),y) TARGET_CFLAGS+= -g3 TARGET_CXXFLAGS+= -g3 +endif ifneq ($(ADK_DEBUG),) TARGET_CFLAGS+= -fno-omit-frame-pointer -- cgit v1.2.3