aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-03-16 20:37:04 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-03-16 20:37:04 +0000
commit872df6022a66ae43daa697548178d6ebce1c361a (patch)
tree64f6154034033169760154dab5d420f8fc970770 /package
parente13eab6e3b6731ff31c01fbf0b2f4bc67fabd7c2 (diff)
downloadupstream-872df6022a66ae43daa697548178d6ebce1c361a.tar.gz
upstream-872df6022a66ae43daa697548178d6ebce1c361a.tar.bz2
upstream-872df6022a66ae43daa697548178d6ebce1c361a.zip
package libssp for apps that need it (only enabled for gcc4)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6584 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/base-files/Makefile19
1 files changed, 18 insertions, 1 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 30e90453ee..345ae72f9f 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -69,6 +69,16 @@ define Package/libgcc
VERSION:=$(LIBGCC_VERSION)-$(PKG_RELEASE)
endef
+define Package/libssp
+ SECTION:=libs
+ CATEGORY:=Base system
+ DEPENDS:=@!NATIVE_TOOLCHAIN
+ DEFAULT:=m
+ TITLE:=GCC support library
+ URL:=http://gcc.gnu.org/
+ VERSION:=$(LIBGCC_VERSION)-$(PKG_RELEASE)
+endef
+
define Package/libpthread
SECTION:=libs
CATEGORY:=Libraries
@@ -140,6 +150,13 @@ define Package/libgcc/install
$(CP) $(STAGING_DIR)/lib/libgcc_s.so.* $(1)/lib/
endef
+ifeq ($(word 1,$(subst ., ,$(LIBGCC_VERSION))),4)
+ define Package/libssp/install
+ $(INSTALL_DIR) $(1)/lib
+ $(CP) $(STAGING_DIR)/lib/libssp.so.* $(1)/lib/
+ endef
+endif
+
define Package/libpthread/install
$(INSTALL_DIR) $(1)/lib
$(CP) $(STAGING_DIR)/lib/libpthread.so.* $(1)/lib/
@@ -160,7 +177,7 @@ endif
$(eval $(call BuildPackage,base-files$(TARGET)))
$(eval $(call BuildPackage,libgcc))
+$(eval $(call BuildPackage,libssp))
$(eval $(call BuildPackage,libpthread))
$(eval $(call BuildPackage,uclibc))
-