diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-04-26 04:09:01 -0500 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-04-26 04:09:01 -0500 |
commit | f2721def0501c1cbaad11f8366c5b20f440b7921 (patch) | |
tree | 7b15c7714ce84fe9d75bb77cab3826908901d18c /mk | |
parent | 8b6a574f396972f5065b4cab0d201fbb97015b0f (diff) |
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.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/vars.mk | 7 |
1 files changed, 5 insertions, 2 deletions
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 |