Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From bb8801fb21ac8d73e3b1a11a8555aaf822182a51 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Tue, 5 Sep 2017 10:36:52 -0700 |
| 4 | Subject: [PATCH] libau: Define STRIP weakly |
| 5 | |
| 6 | STRIP can be set on environment to use cross version of strip utility |
| 7 | hardcoding to strip is not working in cross environment |
| 8 | |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | --- |
| 11 | Upstream-Status: Submitted |
| 12 | |
| 13 | libau/Makefile | 3 ++- |
| 14 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 15 | |
| 16 | diff --git a/libau/Makefile b/libau/Makefile |
| 17 | index 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 | -- |
| 38 | 2.14.1 |
| 39 | |