summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/libacpi/files/ldflags.patch
blob: a7424c39da4af4c12b88e4c2736f7ea1ff812248 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
libacpi: Remove QA warning: No GNU_HASH in the elf binary

Upstream-Status: Inappropriate [other]
  Useful within bitbake environment only.

Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com>

---
 Makefile  |    3 ++-
 config.mk |    1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

--- libacpi-0.2.orig/Makefile
+++ libacpi-0.2/Makefile
@@ -19,6 +19,7 @@ options:
 	@echo "CFLAGS   = ${CFLAGS}"
 	@echo "CC       = ${CC}"
 	@echo "SOFLAGS  = ${SOFLAGS}"
+	@echo "LDFLAGS  = ${LDFLAGS}"
 	@echo "LD       = ${LD}"
 
 .c.o:
@@ -34,7 +35,7 @@ libacpi.a: ${OBJ}
 
 libacpi.so: ${OBJ}
 	@echo LD $@
-	@${CC} ${SOFLAGS} -o $@.${SOVERSION} ${OBJ}
+	@${CC} ${SOFLAGS} ${LDFLAGS} -o $@.${SOVERSION} ${OBJ}
 
 test-libacpi: ${OBJ_test}
 	@echo LD $@
--- libacpi-0.2.orig/config.mk
+++ libacpi-0.2/config.mk
@@ -10,6 +10,7 @@ MANPREFIX = ${PREFIX}/share/man
 SOFLAGS = -shared -Wl,-soname,${SONAME}
 CFLAGS += -fPIC -g --pedantic -Wall -Wextra
 ARFLAGS = cr
+LDFLAGS =
 
 # Compiler and linker
 CC = cc