aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-08-30 09:09:12 -0700
committerKhem Raj <raj.khem@gmail.com>2019-08-30 09:10:49 -0700
commit33644274f258a5fc2156d0acab0d2715c33943ce (patch)
tree9159a4de10ceebf5ac4114da8274d778294d3f9b
parente5c3bc9c34a348cadb3806a0019302efd131ac72 (diff)
downloadmeta-qcom-33644274f258a5fc2156d0acab0d2715c33943ce.tar.gz
meta-qcom-33644274f258a5fc2156d0acab0d2715c33943ce.tar.bz2
meta-qcom-33644274f258a5fc2156d0acab0d2715c33943ce.zip
qdl: Fix QA Issue: No GNU_HASH in the ELF binary
This is because of LDFLAGS and CFLAGS being overwritten in Makefile as a result we missing hash-style option Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--recipes-devtools/qdl/files/0001-Makefile-Use-pkg-config-for-libxml2-detection.patch22
1 files changed, 13 insertions, 9 deletions
diff --git a/recipes-devtools/qdl/files/0001-Makefile-Use-pkg-config-for-libxml2-detection.patch b/recipes-devtools/qdl/files/0001-Makefile-Use-pkg-config-for-libxml2-detection.patch
index d5f63c4..2aca181 100644
--- a/recipes-devtools/qdl/files/0001-Makefile-Use-pkg-config-for-libxml2-detection.patch
+++ b/recipes-devtools/qdl/files/0001-Makefile-Use-pkg-config-for-libxml2-detection.patch
@@ -12,20 +12,24 @@ Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
-diff --git a/Makefile b/Makefile
-index 0a934ff..f18393d 100644
--- a/Makefile
+++ b/Makefile
-@@ -1,7 +1,7 @@
+@@ -1,14 +1,14 @@
OUT := qdl
-CFLAGS := -O2 -Wall -g `xml2-config --cflags`
-LDFLAGS := `xml2-config --libs` -ludev
-+CFLAGS := -O2 -Wall -g `pkg-config --cflags libxml-2.0`
-+LDFLAGS := `pkg-config --libs libxml-2.0` -ludev
- prefix := /usr/local
+-prefix := /usr/local
++CFLAGS += -O2 -Wall -g `pkg-config --cflags libxml-2.0`
++LDFLAGS += `pkg-config --libs libxml-2.0` -ludev
++prefix ?= /usr/local
SRCS := firehose.c qdl.c sahara.c util.c patch.c program.c ufs.c
---
-2.23.0
-
+ OBJS := $(SRCS:.c=.o)
+
+ $(OUT): $(OBJS)
+- $(CC) -o $@ $^ $(LDFLAGS)
++ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
+
+ clean:
+ rm -f $(OUT) $(OBJS)