Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | From 75667f8a0ae4f1689ff03eb1768b1ee8cdfbf00d Mon Sep 17 00:00:00 2001 |
| 2 | From: Krzysztof Kozlowski <krzk@kernel.org> |
| 3 | Date: Wed, 6 Jun 2018 12:49:30 +0200 |
| 4 | Subject: [PATCH 2/2] Makefile: Use supplied LDFLAGS to silence OE GNU_HASH QA |
| 5 | warning |
| 6 | |
| 7 | Fix OpenEmbedded/Yocto QA warning: |
| 8 | |
| 9 | ERROR: lshw-02.16-r1 do_package_qa: QA Issue: No GNU_HASH in the elf binary: 'build/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/lshw/02.16-r1/packages-split/lshw/usr/sbin/lshw' [ldflags] |
| 10 | ERROR: lshw-02.16-r1 do_package_qa: QA run found fatal errors. Please consider fixing them. |
| 11 | ERROR: lshw-02.16-r1 do_package_qa: Function failed: do_package_qa |
| 12 | |
| 13 | Upstream-Status: Submitted |
| 14 | Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> |
| 15 | --- |
| 16 | src/Makefile | 2 +- |
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 18 | |
| 19 | diff --git a/src/Makefile b/src/Makefile |
| 20 | index 654b786dd899..a441ba2bb666 100644 |
| 21 | --- a/src/Makefile |
| 22 | +++ b/src/Makefile |
| 23 | @@ -25,7 +25,7 @@ CXXFLAGS=-g -Wall -g $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) |
| 24 | ifeq ($(SQLITE), 1) |
| 25 | CXXFLAGS+= -DSQLITE $(shell pkg-config --cflags sqlite3) |
| 26 | endif |
| 27 | -LDFLAGS=-L./core/ -g |
| 28 | +LDFLAGS+=-L./core/ -g |
| 29 | ifneq ($(shell $(LD) --help 2| grep -- --as-needed), ) |
| 30 | LDFLAGS+= -Wl,--as-needed |
| 31 | endif |
| 32 | -- |
| 33 | 2.7.4 |
| 34 | |