33 lines
1.1 KiB
Text
33 lines
1.1 KiB
Text
$NetBSD: patch-aa,v 1.5 2009/07/07 19:01:17 joerg Exp $
|
|
|
|
--- src/Makefile.in.orig 2008-11-17 16:55:36.000000000 +0900
|
|
+++ src/Makefile.in
|
|
@@ -95,19 +95,11 @@ OBJ = qCgiRequest.o \
|
|
all: qdecoder
|
|
|
|
qdecoder: ${OBJ}
|
|
- ${AR} ${ARFLAGS} ${LIBNAME} ${OBJ}
|
|
- ${RANLIB} ${LIBNAME}
|
|
- ${LD} ${LDFLAGS} ${OBJ} -o ${SLIBREALNAME}
|
|
- ${CHMOD} 0644 ${SLIBREALNAME}
|
|
- ${RM} -f ${SLIBNAME}
|
|
- ${LN_S} ${SLIBREALNAME} ${SLIBNAME}
|
|
+ ${LIBTOOL} --mode=link ${CC} -o ${LIBNAME:.a=.la} ${OBJ:.o=.lo} \
|
|
+ -rpath ${PREFIX}/lib -version-info ${SLIBVERSION}:0:0
|
|
|
|
install: all
|
|
- ${INSTALL_DATA} qDecoder.h ${HEADERDIR}/qDecoder.h
|
|
- ${INSTALL_DATA} ${LIBNAME} ${LIBDIR}/${LIBNAME}
|
|
- ${INSTALL_DATA} ${SLIBREALNAME} ${LIBDIR}/${SLIBREALNAME}
|
|
- ${RM} -f ${LIBDIR}/${SLIBNAME}
|
|
- ${LN_S} ${LIBDIR}/${SLIBREALNAME} ${LIBDIR}/${SLIBNAME}
|
|
+ ${LIBTOOL} --mode=install ${INSTALL} ${LIBNAME:.a=.la} ${DESTDIR}${LIBDIR}
|
|
|
|
deinstall: uninstall
|
|
uninstall:
|
|
@@ -127,4 +119,4 @@ clean:
|
|
|
|
## Compile
|
|
.c.o:
|
|
- ${CC} ${CFLAGS} ${DEFS} ${INCLUDE} -c -o $@ $<
|
|
+ ${LIBTOOL} --mode=compile ${CC} ${CFLAGS} ${DEFS} ${INCLUDE} -c -o $@ $<
|