summaryrefslogtreecommitdiff
path: root/package/zlib/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-12-17 19:16:10 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-12-17 19:16:10 +0100
commit43c7686b4d6afc56d2909c1630ea2eee626490bb (patch)
tree8f7878c63c45c757cf8b6f7ac7fac0783da6bf31 /package/zlib/Makefile
parent41f5fc3d3eb0b17faeed0de4ddc736c94054db80 (diff)
allow to build static gdb/strace with static/shared mixed toolchain
Diffstat (limited to 'package/zlib/Makefile')
-rw-r--r--package/zlib/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/zlib/Makefile b/package/zlib/Makefile
index f77620608..10ba76375 100644
--- a/package/zlib/Makefile
+++ b/package/zlib/Makefile
@@ -19,6 +19,11 @@ include $(ADK_TOPDIR)/mk/package.mk
$(eval $(call HOST_template,ZLIB,zlib,$(PKG_VERSION)-$(PKG_RELEASE)))
$(eval $(call PKG_template,ZLIB,zlib,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
+ifeq ($(ADK_TARGET_USE_STATIC_AND_SHARED_LIBS),y)
+TARGET_CFLAGS:= $(filter-out -static,$(TARGET_CFLAGS))
+TARGET_LDFLAGS:=$(filter-out -static,$(TARGET_LDFLAGS))
+endif
+
HOST_STYLE:= auto
HOST_CONFIG_STYLE:= manual
HOST_CONFIGURE_ENV+= uname=Linux