diff options
Diffstat (limited to 'meta/recipes-bsp/libacpi/files/ldflags.patch')
-rw-r--r-- | meta/recipes-bsp/libacpi/files/ldflags.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-bsp/libacpi/files/ldflags.patch b/meta/recipes-bsp/libacpi/files/ldflags.patch new file mode 100644 index 0000000000..a7424c39da --- /dev/null +++ b/meta/recipes-bsp/libacpi/files/ldflags.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | libacpi: Remove QA warning: No GNU_HASH in the elf binary | ||
2 | |||
3 | Upstream-Status: Inappropriate [other] | ||
4 | Useful within bitbake environment only. | ||
5 | |||
6 | Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com> | ||
7 | |||
8 | --- | ||
9 | Makefile | 3 ++- | ||
10 | config.mk | 1 + | ||
11 | 2 files changed, 3 insertions(+), 1 deletion(-) | ||
12 | |||
13 | --- libacpi-0.2.orig/Makefile | ||
14 | +++ libacpi-0.2/Makefile | ||
15 | @@ -19,6 +19,7 @@ options: | ||
16 | @echo "CFLAGS = ${CFLAGS}" | ||
17 | @echo "CC = ${CC}" | ||
18 | @echo "SOFLAGS = ${SOFLAGS}" | ||
19 | + @echo "LDFLAGS = ${LDFLAGS}" | ||
20 | @echo "LD = ${LD}" | ||
21 | |||
22 | .c.o: | ||
23 | @@ -34,7 +35,7 @@ libacpi.a: ${OBJ} | ||
24 | |||
25 | libacpi.so: ${OBJ} | ||
26 | @echo LD $@ | ||
27 | - @${CC} ${SOFLAGS} -o $@.${SOVERSION} ${OBJ} | ||
28 | + @${CC} ${SOFLAGS} ${LDFLAGS} -o $@.${SOVERSION} ${OBJ} | ||
29 | |||
30 | test-libacpi: ${OBJ_test} | ||
31 | @echo LD $@ | ||
32 | --- libacpi-0.2.orig/config.mk | ||
33 | +++ libacpi-0.2/config.mk | ||
34 | @@ -10,6 +10,7 @@ MANPREFIX = ${PREFIX}/share/man | ||
35 | SOFLAGS = -shared -Wl,-soname,${SONAME} | ||
36 | CFLAGS += -fPIC -g --pedantic -Wall -Wextra | ||
37 | ARFLAGS = cr | ||
38 | +LDFLAGS = | ||
39 | |||
40 | # Compiler and linker | ||
41 | CC = cc | ||