$NetBSD: patch-ab,v 1.1 2008/08/23 08:37:33 bjs Exp $ --- lib/Makefile.in.orig 2002-12-15 13:02:30.000000000 -0500 +++ lib/Makefile.in @@ -69,13 +69,15 @@ all: ${ALL} .PHONY: clean distclean install libtar.a: ${LIBTAR_OBJS} ${LIBOBJS} - ${AR} rc libtar.a ${LIBTAR_OBJS} ${LIBOBJS} - ${RANLIB} libtar.a + ${LIBTOOL} --mode=link --tag=CC \ + ${CC} -o libtar.la ${LIBTAR_OBJS:.o=.lo} ${LIBOBJS:.o=.lo} \ + ${LDFLAGS} -rpath ${PREFIX}/lib -version-info 1:2 ${LIBTAR_OBJS}: ${LIBTAR_HDRS} .c.o: - ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $< + ${LIBTOOL} --mode=compile --tag=CC \ + ${CC} ${CFLAGS} ${CPPFLAGS} -c -o ${@:.o=.lo} $< -prefer-pic clean: rm -f *~ *.o ${ALL} core @@ -85,7 +86,8 @@ distclean: clean install: ${ALL} ${MKDIR} ${DESTDIR}${libdir} - ${INSTALL_DATA} libtar.a ${DESTDIR}${libdir} + ${LIBTOOL} --mode=install \ + ${BSD_INSTALL_LIB} libtar.la ${DESTDIR}${libdir} ${MKDIR} ${DESTDIR}${includedir} ${INSTALL_DATA} ${srcdir}/libtar.h ${DESTDIR}${includedir} ${INSTALL_DATA} ../listhash/libtar_listhash.h ${DESTDIR}${includedir}