blob: 9efea804b680c2a87d6e6f7d67e2d24bfacd810d [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001From bb8801fb21ac8d73e3b1a11a8555aaf822182a51 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 5 Sep 2017 10:36:52 -0700
4Subject: [PATCH] libau: Define STRIP weakly
5
6STRIP can be set on environment to use cross version of strip utility
7hardcoding to strip is not working in cross environment
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11Upstream-Status: Submitted
12
13 libau/Makefile | 3 ++-
14 1 file changed, 2 insertions(+), 1 deletion(-)
15
16diff --git a/libau/Makefile b/libau/Makefile
17index 81520ac..c25eef2 100644
18--- a/libau/Makefile
19+++ b/libau/Makefile
20@@ -25,6 +25,7 @@ LibSoHdr = libau.h rdu.h
21 LibSoExport = $(addsuffix .exp, $(basename ${LibSoObj}))
22 LibSoExportErr = $(addsuffix .err, ${LibSoExport})
23 LibSoVerScript = verscript
24+STRIP ?= strip
25
26 all: ${LibSo}
27
28@@ -77,7 +78,7 @@ ${LibSo}.${LibSoMajor}.${LibSoMinor}: ${LibSoObj}
29 ${CC} --shared -Wl,-soname,${LibSo}.${LibSoMajor} \
30 -Wl,--version-script,${LibSoVerScript} \
31 ${LDFLAGS} -o $@ $^ ${LDLIBS}
32- strip -R EXP $@
33+ ${STRIP} -R EXP $@
34 # readelf --syms --use-dynamic libau.so
35
36 install_ulib: File = ${LibSo}.${LibSoMajor}.${LibSoMinor}
37--
382.14.1
39