[tools] 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 00ed3dc4257962ed7c9916479e12ce5fe2fa2db4..6e01051a3a4d093a26e1de4623431e78fe951094 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 e26d6b75c93d73a4ba581c8612aae3147247df73..373d9bebb8cae886d609f7dd736333584a69b776 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 3f033c0c2b8c488455c70a996d55235da8f6ba1a..4535735d69ef24695a2a5821cb1c7aeee93788f1 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 210feceb715f60d2b4b464ea39332dcc4ab06d8c..522ae70d8b91c2da07eab208379ecfe4dd7bda56 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 4b917c59cf076003ad4d0509dd1421d944be98b5..b838b46c55a10e2091d8fd54e6a77bf602a16ac1 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