summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-04-02 17:57:30 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-04-02 17:57:33 +0200
commit482a51658180992f000becae4fe20b47938d2670 (patch)
tree4a066c2aaff9f373946a2934c63005c40490845a /package
parent8a08b5fb4bab4499946893a11e0f54a7ac326613 (diff)
gdbserver: allow static linking
Diffstat (limited to 'package')
-rw-r--r--package/gdbserver/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/gdbserver/Makefile b/package/gdbserver/Makefile
index 93df2cf09..7aa3d20ad 100644
--- a/package/gdbserver/Makefile
+++ b/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/