From 01fb448d56b4559970ed8c7f67ba1312caf806a5 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 14 Sep 2015 15:15:15 +0000 Subject: [PATCH] tools/make-ext4fs: prefer static linking Link zlib statically on Linux systems. Signed-off-by: Jo-Philipp Wich SVN-Revision: 46909 --- tools/make-ext4fs/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tools/make-ext4fs/Makefile b/tools/make-ext4fs/Makefile index 62f7e27657..d6858cdd97 100644 --- a/tools/make-ext4fs/Makefile +++ b/tools/make-ext4fs/Makefile @@ -7,22 +7,26 @@ include $(TOPDIR)/rules.mk PKG_NAME:=make-ext4fs -PKG_VERSION:=2015-05-01 +PKG_VERSION:=2015-09-14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://git.openwrt.org/project/make_ext4fs.git PKG_SOURCE_PROTO:=git -PKG_SOURCE_VERSION:=7c15bef6c732896d9ffb883fb1480fcd60c94a50 +PKG_SOURCE_VERSION:=98e3d5c1ceddd4a32b92c1cfafe929fe006fb98c PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) -PKG_MIRROR_MD5SUM:=d81eca37852cbf840108e1a8ad8fb22f +PKG_MIRROR_MD5SUM:=c736e546de3b36da73f5e84a9ce3ffee PKG_CAT:=zcat HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION) include $(INCLUDE_DIR)/host-build.mk +ifeq ($(HOST_OS),Linux) + MAKE_STATIC := STATIC=1 +endif + define Host/Compile - $(MAKE) -C $(HOST_BUILD_DIR) make_ext4fs + $(MAKE) -C $(HOST_BUILD_DIR) make_ext4fs $(MAKE_STATIC) endef define Host/Install