blob: d3da01b40302842b386aa43143c56711805dba5d [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 75667f8a0ae4f1689ff03eb1768b1ee8cdfbf00d Mon Sep 17 00:00:00 2001
2From: Krzysztof Kozlowski <krzk@kernel.org>
3Date: Wed, 6 Jun 2018 12:49:30 +0200
4Subject: [PATCH 2/2] Makefile: Use supplied LDFLAGS to silence OE GNU_HASH QA
5 warning
6
7Fix 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
13Upstream-Status: Submitted
14Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
15---
16 src/Makefile | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/src/Makefile b/src/Makefile
20index 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--
332.7.4
34