From 43c7686b4d6afc56d2909c1630ea2eee626490bb Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 17 Dec 2017 19:16:10 +0100 Subject: allow to build static gdb/strace with static/shared mixed toolchain --- package/ncurses/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'package/ncurses') diff --git a/package/ncurses/Makefile b/package/ncurses/Makefile index e64d3fe59..2b2c3d2d1 100644 --- a/package/ncurses/Makefile +++ b/package/ncurses/Makefile @@ -26,6 +26,11 @@ include ${ADK_TOPDIR}/mk/package.mk $(eval $(call HOST_template,LIBNCURSES,libncurses,${PKG_VERSION}-${PKG_RELEASE})) $(eval $(call PKG_template,LIBNCURSES,libncurses,${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 + ifeq ($(ADK_TARGET_BINFMT_FLAT)$(ADK_TARGET_USE_STATIC_LIBS_ONLY),y) CONFIGURE_ARGS+= --with-static else -- cgit v1.2.3