mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 22:34:04 +02:00
[tools] convert remaining tools to $(HOST_STATIC_LINKING) (#12012)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33148 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
26de6c0700
commit
2fd8a1e0e0
@ -21,8 +21,8 @@ UTIL_DIR=$(HOST_BUILD_DIR)/C/LzmaUtil
|
|||||||
ALONE_DIR=$(HOST_BUILD_DIR)/CPP/7zip/Compress/LZMA_Alone
|
ALONE_DIR=$(HOST_BUILD_DIR)/CPP/7zip/Compress/LZMA_Alone
|
||||||
|
|
||||||
define Host/Compile
|
define Host/Compile
|
||||||
$(MAKE) -C $(UTIL_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="-static"
|
$(MAKE) -C $(ALONE_DIR) -f makefile.gcc LDFLAGS="$(HOST_STATIC_LINKING)"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Host/Install
|
define Host/Install
|
||||||
|
@ -21,7 +21,7 @@ include $(INCLUDE_DIR)/host-build.mk
|
|||||||
define Host/Compile
|
define Host/Compile
|
||||||
rm -f $(HOST_BUILD_DIR)/tools/.depend
|
rm -f $(HOST_BUILD_DIR)/tools/.depend
|
||||||
touch $(HOST_BUILD_DIR)/include/config.h
|
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
|
endef
|
||||||
|
|
||||||
define Host/Install
|
define Host/Install
|
||||||
|
@ -19,7 +19,7 @@ define Host/Prepare
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Host/Compile
|
define Host/Compile
|
||||||
$(MAKE) -C $(HOST_BUILD_DIR) LDFLAGS="-static"
|
$(MAKE) -C $(HOST_BUILD_DIR) LDFLAGS="$(HOST_STATIC_LINKING)"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Host/Configure
|
define Host/Configure
|
||||||
|
@ -27,7 +27,7 @@ HOST_CONFIGURE_VARS += \
|
|||||||
ac_cv_header_selinux_selinux_h=no \
|
ac_cv_header_selinux_selinux_h=no \
|
||||||
|
|
||||||
define Host/Compile
|
define Host/Compile
|
||||||
$(MAKE) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" LDFLAGS="-static"
|
$(MAKE) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" LDFLAGS="$(HOST_STATIC_LINKING)"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Host/Install
|
define Host/Install
|
||||||
|
@ -26,7 +26,7 @@ define Host/Compile
|
|||||||
XATTR_SUPPORT= \
|
XATTR_SUPPORT= \
|
||||||
LZMA_LIB="$(STAGING_DIR_HOST)/lib/liblzma.a" \
|
LZMA_LIB="$(STAGING_DIR_HOST)/lib/liblzma.a" \
|
||||||
EXTRA_CFLAGS="-I$(STAGING_DIR_HOST)/include" \
|
EXTRA_CFLAGS="-I$(STAGING_DIR_HOST)/include" \
|
||||||
EXTRA_LDFLAGS="-static" \
|
EXTRA_LDFLAGS="$(HOST_STATIC_LINKING)" \
|
||||||
mksquashfs unsquashfs
|
mksquashfs unsquashfs
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user