Browse Source

gdbserver: allow static linking

Waldemar Brodkorb 7 years ago
parent
commit
482a516581
1 changed files with 5 additions and 0 deletions
  1. 5 0
      package/gdbserver/Makefile

+ 5 - 0
package/gdbserver/Makefile

@@ -29,6 +29,11 @@ include ${ADK_TOPDIR}/mk/package.mk
 
 $(eval $(call PKG_template,GDBSERVER,gdbserver,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
 
+ifneq ($(ADK_TARGET_BINFMT_FLAT)$(ADK_TARGET_USE_STATIC_LIBS_ONLY),)
+TARGET_LDFLAGS+=	-static-libstdc++
+CONFIGURE_ARGS+=	--disable-build-with-cxx --with-libthread-db=$(STAGING_TARGET_DIR)/usr/lib/libthread_db.a
+endif
+
 gdbserver-install:
 	${INSTALL_DIR} ${IDIR_GDBSERVER}/usr/bin
 	${INSTALL_BIN} ${WRKINST}/usr/bin/gdbserver ${IDIR_GDBSERVER}/usr/bin/