xz: link statically
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 10 Aug 2012 19:27:00 +0000 (19:27 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 10 Aug 2012 19:27:00 +0000 (19:27 +0000)
SVN-Revision: 33111

tools/xz/Makefile

index 3dc9da2669f31953cf45cb119285806cc1388309..41894e073cadf4b76d68bf82d6be4405e6a21ba2 100644 (file)
@@ -15,8 +15,10 @@ PKG_MD5SUM:=8d900b742b94fa9e708ca4f5a4b29003
 
 include $(INCLUDE_DIR)/host-build.mk
 
+HOST_LDFLAGS += -static
+
 define Host/Install
-       $(MAKE) -C $(HOST_BUILD_DIR) install xzlinks="unxz xzcat"
+       $(MAKE) -C $(HOST_BUILD_DIR) install xzlinks="unxz xzcat" AM_LDFLAGS="-all-static"
 endef
 
 $(eval $(call HostBuild))