summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/libacpi/files/makefile-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/libacpi/files/makefile-fix.patch')
-rw-r--r--meta/recipes-bsp/libacpi/files/makefile-fix.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/meta/recipes-bsp/libacpi/files/makefile-fix.patch b/meta/recipes-bsp/libacpi/files/makefile-fix.patch
new file mode 100644
index 0000000..c34ef34
--- /dev/null
+++ b/meta/recipes-bsp/libacpi/files/makefile-fix.patch
@@ -0,0 +1,47 @@
1Upstream-Status: Pending
2
3---
4 Makefile | 6 +++---
5 config.mk | 3 ++-
6 2 files changed, 5 insertions(+), 4 deletions(-)
7
8Index: libacpi-0.2/Makefile
9===================================================================
10--- libacpi-0.2.orig/Makefile 2007-07-29 14:09:34.000000000 +0200
11+++ libacpi-0.2/Makefile 2008-09-26 10:34:53.000000000 +0200
12@@ -25,16 +25,16 @@ ${OBJ}: config.mk libacpi.h
13
14 libacpi.a: ${OBJ}
15 @echo AR $@
16- @${AR} $@ ${OBJ}
17+ ${AR} ${ARFLAGS} $@ ${OBJ}
18 @${RANLIB} $@
19
20 libacpi.so: ${OBJ}
21 @echo LD $@
22- @${LD} ${SOFLAGS} -o $@.${SOVERSION} ${OBJ}
23+ @${CC} ${SOFLAGS} -o $@.${SOVERSION} ${OBJ}
24
25 test-libacpi: ${OBJ_test}
26 @echo LD $@
27- @${LD} -o $@ ${OBJ_test} ${LDFLAGS}
28+ @${CC} -o $@ ${OBJ_test} ${LDFLAGS}
29 @strip $@
30
31 install: all
32Index: libacpi-0.2/config.mk
33===================================================================
34--- libacpi-0.2.orig/config.mk 2007-07-29 14:09:34.000000000 +0200
35+++ libacpi-0.2/config.mk 2008-09-26 10:34:33.000000000 +0200
36@@ -9,9 +9,10 @@ MANPREFIX = ${PREFIX}/share/man
37 # flags
38 SOFLAGS = -shared -Wl,-soname,${SONAME}
39 CFLAGS += -fPIC -g --pedantic -Wall -Wextra
40+ARFLAGS = cr
41
42 # Compiler and linker
43 CC = cc
44 LD = ${CC}
45-AR = ar cr
46+AR = ar
47 RANLIB = ranlib