From 7f8284a72890b5d3e3f3676af58b056f772670f2 Mon Sep 17 00:00:00 2001 From: nbd Date: Mon, 29 Oct 2012 19:25:30 +0000 Subject: toolchain: add a package for libthread_db git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33999 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/toolchain/Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'package/toolchain') diff --git a/package/toolchain/Makefile b/package/toolchain/Makefile index 7518e9d06..c194a34d0 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)) -- cgit v1.2.3