summaryrefslogtreecommitdiff
path: root/package/toolchain
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-10-29 19:25:30 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-10-29 19:25:30 +0000
commitbb83657bc0dd39eeeea40f54c818570cab7ce574 (patch)
treeaca425b480ee4809809fe0651422bf3cf62f6ac3 /package/toolchain
parentbf9f43e912147fb8108b121dd7f2b1c12b62d689 (diff)
downloadmtk-20170518-bb83657bc0dd39eeeea40f54c818570cab7ce574.zip
mtk-20170518-bb83657bc0dd39eeeea40f54c818570cab7ce574.tar.gz
mtk-20170518-bb83657bc0dd39eeeea40f54c818570cab7ce574.tar.bz2
toolchain: add a package for libthread_db
SVN-Revision: 33999
Diffstat (limited to 'package/toolchain')
-rw-r--r--package/toolchain/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/toolchain/Makefile b/package/toolchain/Makefile
index 7518e9d..c194a34 100644
--- a/package/toolchain/Makefile
+++ b/package/toolchain/Makefile
@@ -170,6 +170,11 @@ define Package/libpthread/config
endef
+define Package/libthread-db
+$(call Package/libc/Default)
+ TITLE:=POSIX thread library debugging support
+endef
+
define Package/librt
$(call Package/libc/Default)
TITLE:=POSIX.1b RealTime extension library
@@ -445,6 +450,14 @@ ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
$(1)/lib/
endef
+ define Package/libthread-db/install
+ $(INSTALL_DIR) $(1)/lib
+ $(CP) \
+ $(TOOLCHAIN_DIR)/lib/libthread_db.so.* \
+ $(TOOLCHAIN_DIR)/lib/libthread_db-$(LIBC_SO_VERSION).so \
+ $(1)/lib/
+ endef
+
define Package/libpthread/install_lib
$(if $(wildcard $(TOOLCHAIN_DIR)/lib/libpthread_so.a),$(CP) $(TOOLCHAIN_DIR)/lib/libpthread_so.a $(1)/lib/libpthread_pic.a)
endef
@@ -556,6 +569,7 @@ $(eval $(call BuildPackage,libgcc))
$(eval $(call BuildPackage,libssp))
$(eval $(call BuildPackage,libstdcpp))
$(eval $(call BuildPackage,libpthread))
+$(eval $(call BuildPackage,libthread-db))
$(eval $(call BuildPackage,librt))
$(eval $(call BuildPackage,libgfortran))
$(eval $(call BuildPackage,ldd))