Browse Source

gdbserver: fix static linking

Waldemar Brodkorb 2 years ago
parent
commit
a112d2d80f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      package/gdbserver/Makefile
  2. 1 1
      package/ncurses/Makefile

+ 1 - 1
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:

+ 1 - 1
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