diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-04-07 13:21:45 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-04-07 13:21:45 +0200 |
commit | b1493d762cd757b376653eb65e78add28e3e94c6 (patch) | |
tree | 4de0076834f48e359d35aeab0b5f0ced3eb6da69 /mk | |
parent | f4a140e55739c8437b1b139d915b957b416840d8 (diff) |
enable static globally
Diffstat (limited to 'mk')
-rw-r--r-- | mk/vars.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mk/vars.mk b/mk/vars.mk index e804ad5e6..49eb3e7e3 100644 --- a/mk/vars.mk +++ b/mk/vars.mk @@ -111,6 +111,12 @@ TARGET_LDFLAGS+= -Wl,--secure-plt endif endif +ifeq ($(ADK_STATIC),y) +TARGET_CFLAGS+= -static +TARGET_CXXFLAGS+= -static +TARGET_LDFLAGS+= -static +endif + ifneq ($(ADK_TOOLCHAIN_GCC_USE_SSP),) TARGET_CFLAGS+= -fstack-protector TARGET_CXXFLAGS+= -fstack-protector |