summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2021-10-27 10:32:43 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2021-10-28 19:10:20 +0200
commita112d2d80fcbddef7b6d17e7774949c156d5e624 (patch)
tree5c8a8b1d28ccaa2557152c4328f2e5dd9124457e
parent28e1e842ddef9861fe8e848bc7ada5f9a2237393 (diff)
gdbserver: fix static linking
-rw-r--r--package/gdbserver/Makefile2
-rw-r--r--package/ncurses/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/package/gdbserver/Makefile b/package/gdbserver/Makefile
index 4b27ffa1a..52e9f04ef 100644
--- a/package/gdbserver/Makefile
+++ b/package/gdbserver/Makefile
@@ -32,7 +32,7 @@ $(eval $(call PKG_template,GDBSERVER,gdbserver,${PKG_VERSION}-${PKG_RELEASE},${P
CONFIGURE_ARGS+= --enable-static
ifneq ($(ADK_TARGET_BINFMT_FLAT)$(ADK_TARGET_USE_STATIC_LIBS_ONLY)$(ADK_TARGET_USE_STATIC_AND_SHARED_LIBS),)
TARGET_LDFLAGS+= -static-libstdc++
-CONFIGURE_ARGS+= --disable-build-with-cxx --with-libthread-db=$(STAGING_TARGET_DIR)/usr/lib/libthread_db.a
+CONFIGURE_ARGS+= --disable-build-with-cxx --with-libthread-db=$(STAGING_TARGET_DIR)/usr/lib/libthread_db.a --disable-source-highlight
endif
gdbserver-install:
diff --git a/package/ncurses/Makefile b/package/ncurses/Makefile
index dc6e02a15..e0c7e4aa6 100644
--- a/package/ncurses/Makefile
+++ b/package/ncurses/Makefile
@@ -31,7 +31,7 @@ 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)
+ifeq ($(ADK_TARGET_USE_STATIC_LIBS_ONLY),y)
CONFIGURE_ARGS+= --with-static
else
CONFIGURE_ARGS+= --with-shared