summaryrefslogtreecommitdiffstats
path: root/import-layers/meta-openembedded/meta-filesystems/recipes-utils/aufs-util/aufs-util/0001-libau-Define-STRIP-weakly.patch
blob: 6732dc42e3a7f5ec1cd5e77394da03783d455ab6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From daf04dc9ca1f2e4c65ec338ab439e0a792e1a8ac Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 5 Sep 2017 10:36:52 -0700
Subject: [PATCH] libau: Define STRIP weakly

STRIP can be set on environment to use cross version of strip utility
hardcoding to strip is not working in cross environment

Upstream-Status: Submitted

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 libau/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libau/Makefile b/libau/Makefile
index 81520ac..c25eef2 100644
--- a/libau/Makefile
+++ b/libau/Makefile
@@ -25,6 +25,7 @@ LibSoHdr = libau.h rdu.h
 LibSoExport = $(addsuffix .exp, $(basename ${LibSoObj}))
 LibSoExportErr = $(addsuffix .err, ${LibSoExport})
 LibSoVerScript = verscript
+STRIP ?= strip
 
 all: ${LibSo}
 
@@ -77,7 +78,7 @@ ${LibSo}.${LibSoMajor}.${LibSoMinor}: ${LibSoObj}
 	${CC} --shared -Wl,-soname,${LibSo}.${LibSoMajor} \
 		-Wl,--version-script,${LibSoVerScript} \
 		${LDFLAGS} -o $@ $^ ${LDLIBS}
-	strip -R EXP $@
+	${STRIP} -R EXP $@
 #	readelf --syms --use-dynamic libau.so
 
 install_ulib: File = ${LibSo}.${LibSoMajor}.${LibSoMinor}
OpenPOWER on IntegriCloud