From 48cf8bf959b1e55ef81881d173fcbc1129e501ad Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 28 Oct 2019 23:50:37 +0100 Subject: [PATCH] - autofs: add patch to force STRIP to empty --- make/target-tools.mk | 5 +++-- patches/autofs/force-STRIP-to-emtpy.patch | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 patches/autofs/force-STRIP-to-emtpy.patch diff --git a/make/target-tools.mk b/make/target-tools.mk index eb6c2539..ccf1a731 100644 --- a/make/target-tools.mk +++ b/make/target-tools.mk @@ -887,7 +887,8 @@ $(ARCHIVE)/$(AUTOFS_SOURCE): # wget -N https://mirrors.edge.kernel.org/pub/linux/daemons/autofs/v5/patches-5.1.6/patch_order_5.1.5 # for p in $(cat patch_order_5.1.5); do test -f $p || wget https://mirrors.edge.kernel.org/pub/linux/daemons/autofs/v5/patches-5.1.6/$p; done -AUTOFS_PATCH = $(addprefix autofs/, $(shell cat $(PATCHES)/autofs/patch_order_$(AUTOFS_VER))) +AUTOFS_PATCH = $(shell cat $(PATCHES)/autofs/patch_order_$(AUTOFS_VER)) +AUTOFS_PATCH += force-STRIP-to-emtpy.patch AUTOFS_DEPS = libtirpc @@ -895,7 +896,7 @@ autofs: $(AUTOFS_DEPS) $(ARCHIVE)/$(AUTOFS_SOURCE) | $(TARGET_DIR) $(REMOVE)/$(AUTOFS_TMP) $(UNTAR)/$(AUTOFS_SOURCE) $(CHDIR)/$(AUTOFS_TMP); \ - $(call apply_patches, $(AUTOFS_PATCH)); \ + $(call apply_patches, $(addprefix $(@F)/,$(AUTOFS_PATCH))); \ sed -i "s|nfs/nfs.h|linux/nfs.h|" include/rpc_subs.h; \ export ac_cv_linux_procfs=yes; \ export ac_cv_path_KRB5_CONFIG=no; \ diff --git a/patches/autofs/force-STRIP-to-emtpy.patch b/patches/autofs/force-STRIP-to-emtpy.patch new file mode 100644 index 00000000..5776ee48 --- /dev/null +++ b/patches/autofs/force-STRIP-to-emtpy.patch @@ -0,0 +1,16 @@ +diff --git a/Makefile.rules b/Makefile.rules +index 2ccb1f6..b94f27e 100644 +--- a/Makefile.rules ++++ b/Makefile.rules +@@ -35,9 +35,9 @@ LDFLAGS ?= -s + endif + + ifdef DONTSTRIP +-STRIP ?= : ++STRIP = : + else +-STRIP ?= strip --strip-debug ++STRIP = : + endif + + CC ?= gcc