convert remaining tools to $(HOST_STATIC_LINKING) (#12012)
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 12 Aug 2012 13:27:49 +0000 (13:27 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 12 Aug 2012 13:27:49 +0000 (13:27 +0000)
SVN-Revision: 33148

tools/lzma/Makefile
tools/mkimage/Makefile
tools/padjffs2/Makefile
tools/sed/Makefile
tools/squashfs4/Makefile

index 00ed3dc..6e01051 100644 (file)
@@ -21,8 +21,8 @@ UTIL_DIR=$(HOST_BUILD_DIR)/C/LzmaUtil
 ALONE_DIR=$(HOST_BUILD_DIR)/CPP/7zip/Compress/LZMA_Alone
 
 define Host/Compile
-       $(MAKE) -C $(UTIL_DIR) -f makefile.gcc LDFLAGS="-static"
-       $(MAKE) -C $(ALONE_DIR) -f makefile.gcc LDFLAGS="-static"
+       $(MAKE) -C $(UTIL_DIR) -f makefile.gcc LDFLAGS="$(HOST_STATIC_LINKING)"
+       $(MAKE) -C $(ALONE_DIR) -f makefile.gcc LDFLAGS="$(HOST_STATIC_LINKING)"
 endef
 
 define Host/Install
index e26d6b7..373d9be 100644 (file)
@@ -21,7 +21,7 @@ include $(INCLUDE_DIR)/host-build.mk
 define Host/Compile
        rm -f $(HOST_BUILD_DIR)/tools/.depend
        touch $(HOST_BUILD_DIR)/include/config.h
-       $(MAKE) -C $(HOST_BUILD_DIR) BUILD_DIR= BIN_FILES-y="mkimage" HOSTLDFLAGS="-static" tools
+       $(MAKE) -C $(HOST_BUILD_DIR) BUILD_DIR= BIN_FILES-y="mkimage" HOSTLDFLAGS="$(HOST_STATIC_LINKING)" tools
 endef
 
 define Host/Install
index 3f033c0..4535735 100644 (file)
@@ -19,7 +19,7 @@ define Host/Prepare
 endef
 
 define Host/Compile
-       $(MAKE) -C $(HOST_BUILD_DIR) LDFLAGS="-static"
+       $(MAKE) -C $(HOST_BUILD_DIR) LDFLAGS="$(HOST_STATIC_LINKING)"
 endef
 
 define Host/Configure
index 210fece..522ae70 100644 (file)
@@ -27,7 +27,7 @@ HOST_CONFIGURE_VARS += \
        ac_cv_header_selinux_selinux_h=no \
 
 define Host/Compile
-       $(MAKE) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" LDFLAGS="-static"
+       $(MAKE) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" LDFLAGS="$(HOST_STATIC_LINKING)"
 endef
 
 define Host/Install
index 4b917c5..b838b46 100644 (file)
@@ -26,7 +26,7 @@ define Host/Compile
                XATTR_SUPPORT= \
                LZMA_LIB="$(STAGING_DIR_HOST)/lib/liblzma.a" \
                EXTRA_CFLAGS="-I$(STAGING_DIR_HOST)/include" \
-               EXTRA_LDFLAGS="-static" \
+               EXTRA_LDFLAGS="$(HOST_STATIC_LINKING)" \
                mksquashfs unsquashfs
 endef