summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-12-27 19:01:26 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2017-12-27 19:04:04 (GMT)
commit3ff1cb3aac7d54f6e5ca9e1209bafc647b923e04 (patch)
treeb279fb4c6ac5012157d9098f39c4d13f469510ff /toolchain
parent1f87a166fafb2e195e0184b733928d50d258c1ab (diff)
only filter out -static for static-shared builds
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/gcc/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index 2303e4b..b2216bb 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -21,8 +21,10 @@ TARGET_CFLAGS:= $(filter-out -msep-data,$(TARGET_CFLAGS))
TARGET_CXXFLAGS:= $(filter-out -msep-data,$(TARGET_CXXFLAGS))
endif
+ifeq ($(ADK_TARGET_USE_STATIC_AND_SHARED_LIBS),y)
TARGET_CFLAGS:= $(filter-out -static,$(TARGET_CFLAGS))
TARGET_CXXFLAGS:= $(filter-out -static,$(TARGET_CXXFLAGS))
+endif
GCC_CONFOPTS:= --prefix=$(TOOLCHAIN_DIR)/usr \
--with-bugurl="http://www.openadk.org/" \