0002-Makefile-Use-supplied-LDFLAGS-to-silence-OE-GNU_HASH.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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. Fix OpenEmbedded/Yocto QA warning:
  7. 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]
  8. ERROR: lshw-02.16-r1 do_package_qa: QA run found fatal errors. Please consider fixing them.
  9. ERROR: lshw-02.16-r1 do_package_qa: Function failed: do_package_qa
  10. Upstream-Status: Submitted
  11. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
  12. ---
  13. src/Makefile | 2 +-
  14. 1 file changed, 1 insertion(+), 1 deletion(-)
  15. diff --git a/src/Makefile b/src/Makefile
  16. index 654b786dd899..a441ba2bb666 100644
  17. --- a/src/Makefile
  18. +++ b/src/Makefile
  19. @@ -25,7 +25,7 @@ CXXFLAGS=-g -Wall -g $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS)
  20. ifeq ($(SQLITE), 1)
  21. CXXFLAGS+= -DSQLITE $(shell pkg-config --cflags sqlite3)
  22. endif
  23. -LDFLAGS=-L./core/ -g
  24. +LDFLAGS+=-L./core/ -g
  25. ifneq ($(shell $(LD) --help 2| grep -- --as-needed), )
  26. LDFLAGS+= -Wl,--as-needed
  27. endif
  28. --
  29. 2.7.4