aboutsummaryrefslogtreecommitdiffstats
path: root/tools/mtd-utils/patches/310-add-static-linking-option.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2018-04-15 19:25:17 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2018-04-28 15:29:13 +0200
commitc7cd166479b77e2d799da175282bed4b9521eb42 (patch)
treeaabcd9d86041147c9165f40b6d7277b3b62635aa /tools/mtd-utils/patches/310-add-static-linking-option.patch
parentbf167f8a9a75894a4d7300755f141ec7cb8bc37d (diff)
downloadupstream-c7cd166479b77e2d799da175282bed4b9521eb42.tar.gz
upstream-c7cd166479b77e2d799da175282bed4b9521eb42.tar.bz2
upstream-c7cd166479b77e2d799da175282bed4b9521eb42.zip
tools/mtd-utils: update to version 2.0.2
This version now uses autotools to configure the build system. They are also using the newly added zlib package. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Diffstat (limited to 'tools/mtd-utils/patches/310-add-static-linking-option.patch')
-rw-r--r--tools/mtd-utils/patches/310-add-static-linking-option.patch43
1 files changed, 0 insertions, 43 deletions
diff --git a/tools/mtd-utils/patches/310-add-static-linking-option.patch b/tools/mtd-utils/patches/310-add-static-linking-option.patch
deleted file mode 100644
index 828d7751e5..0000000000
--- a/tools/mtd-utils/patches/310-add-static-linking-option.patch
+++ /dev/null
@@ -1,43 +0,0 @@
---- a/common.mk
-+++ b/common.mk
-@@ -2,6 +2,16 @@ CC := $(CROSS)gcc
- AR := $(CROSS)ar
- RANLIB := $(CROSS)ranlib
-
-+ifeq ($(STATIC),1)
-+ define static_link
-+ -Wl,-Bstatic $(1) -Wl,-Bdynamic
-+ endef
-+else
-+ define static_link
-+ $(1)
-+ endef
-+endif
-+
- # Stolen from Linux build system
- comma = ,
- try-run = $(shell set -e; ($(1)) >/dev/null 2>&1 && echo "$(2)" || echo "$(3)")
---- a/Makefile
-+++ b/Makefile
-@@ -89,10 +89,10 @@ obj-mkfs.jffs2 = compr_rtime.o compr_zli
- compr_lzma.o lzma/LzFind.o lzma/LzmaEnc.o lzma/LzmaDec.o \
- compr.o rbtree.o
- LDFLAGS_mkfs.jffs2 = $(ZLIBLDFLAGS) $(LZOLDFLAGS)
--LDLIBS_mkfs.jffs2 = -lz $(LZOLDLIBS)
-+LDLIBS_mkfs.jffs2 = $(call static_link,-lz $(LZOLDLIBS))
-
- LDFLAGS_jffs2reader = $(ZLIBLDFLAGS) $(LZOLDFLAGS)
--LDLIBS_jffs2reader = -lz $(LZOLDLIBS)
-+LDLIBS_jffs2reader = $(call static_link,-lz $(LZOLDLIBS))
-
- $(foreach v,$(MTD_BINS),$(eval $(call mkdep,,$(v))))
-
-@@ -114,7 +114,7 @@ else
- LZOLDLIBS = -llzo2
- endif
-
--LDLIBS_mkfs.ubifs = -lz $(LZOLDLIBS) -lm -luuid
-+LDLIBS_mkfs.ubifs = $(call static_link,-lz $(LZOLDLIBS)) -lm $(call static_link,-luuid)
- $(call mkdep,mkfs.ubifs/,mkfs.ubifs,,ubi-utils/libubi.a)
-
- #