Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Upstream-Status: Pending |
| 2 | |
| 3 | --- |
| 4 | Makefile | 6 +++--- |
| 5 | config.mk | 3 ++- |
| 6 | 2 files changed, 5 insertions(+), 4 deletions(-) |
| 7 | |
| 8 | Index: 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 |
| 32 | Index: 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 |