projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[tools] use HOST_STATIC_LINKING instead of hardcoding -static
[openwrt/svn-archive/archive.git]
/
tools
/
xz
/
Makefile
diff --git
a/tools/xz/Makefile
b/tools/xz/Makefile
index 41894e073cadf4b76d68bf82d6be4405e6a21ba2..b1698be99e063e216c2001a4318a2f8c7b62cb66 100644
(file)
--- a/
tools/xz/Makefile
+++ b/
tools/xz/Makefile
@@
-15,10
+15,11
@@
PKG_MD5SUM:=8d900b742b94fa9e708ca4f5a4b29003
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/host-build.mk
-HOST_LDFLAGS +=
-static
+HOST_LDFLAGS +=
$(HOST_STATIC_LINKING)
define Host/Install
define Host/Install
- $(MAKE) -C $(HOST_BUILD_DIR) install xzlinks="unxz xzcat" AM_LDFLAGS="-all-static"
+ $(MAKE) -C $(HOST_BUILD_DIR) install xzlinks="unxz xzcat" \
+ AM_LDFLAGS="$(if $(HOST_STATIC_LINKING),-all-static)"
endef
$(eval $(call HostBuild))
endef
$(eval $(call HostBuild))