Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | From daf04dc9ca1f2e4c65ec338ab439e0a792e1a8ac Mon Sep 17 00:00:00 2001 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 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 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 9 | Upstream-Status: Submitted |
| 10 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | |
| 13 | --- |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 14 | libau/Makefile | 3 ++- |
| 15 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 16 | |
| 17 | diff --git a/libau/Makefile b/libau/Makefile |
| 18 | index 81520ac..c25eef2 100644 |
| 19 | --- a/libau/Makefile |
| 20 | +++ b/libau/Makefile |
| 21 | @@ -25,6 +25,7 @@ LibSoHdr = libau.h rdu.h |
| 22 | LibSoExport = $(addsuffix .exp, $(basename ${LibSoObj})) |
| 23 | LibSoExportErr = $(addsuffix .err, ${LibSoExport}) |
| 24 | LibSoVerScript = verscript |
| 25 | +STRIP ?= strip |
| 26 | |
| 27 | all: ${LibSo} |
| 28 | |
| 29 | @@ -77,7 +78,7 @@ ${LibSo}.${LibSoMajor}.${LibSoMinor}: ${LibSoObj} |
| 30 | ${CC} --shared -Wl,-soname,${LibSo}.${LibSoMajor} \ |
| 31 | -Wl,--version-script,${LibSoVerScript} \ |
| 32 | ${LDFLAGS} -o $@ $^ ${LDLIBS} |
| 33 | - strip -R EXP $@ |
| 34 | + ${STRIP} -R EXP $@ |
| 35 | # readelf --syms --use-dynamic libau.so |
| 36 | |
| 37 | install_ulib: File = ${LibSo}.${LibSoMajor}.${LibSoMinor} |