$NetBSD: patch-ab,v 1.8 2000/06/03 19:18:24 wiz Exp $ --- ./libtiff/Makefile.in.orig Sun Nov 28 21:15:36 1999 +++ ./libtiff/Makefile.in Mon Jan 3 17:34:04 2000 @@ -35,7 +35,8 @@ # SHELL = @SCRIPT_SH@ NULL = -CC = @CCOMPILER@ +CCOMPILER = @CCOMPILER@ +CC = ${LIBTOOL} ${CCOMPILER} AR = @AR@ AROPTS = @AROPTS@ RANLIB = @RANLIB@ @@ -135,7 +136,7 @@ tif_write.o \ tif_zip.o \ ${NULL} -TARGETS = libtiff.a +TARGETS = libtiff.la all: ${TARGETS} if [ @DSO@dso != nodso ]; then \ @@ -144,9 +145,9 @@ true; \ fi -libtiff.a: ${OBJS} - ${AR} ${AROPTS} libtiff.a $? - ${RANLIB} libtiff.a +libtiff.la: ${OBJS} + ${CC} -o $@ ${OBJS:.o=.lo} -rpath @DIR_LIB@ -Wl,-R@DIR_LIB@ -L@DIR_LIB@ -ljpeg -lz -lm \ + -version-info @DIST_MAJOR@:@DIST_MINOR@ # # NB: The configure script verifies that the configured @@ -334,7 +335,7 @@ fi install: all installHdrs ${INSTALL} -idb tiff.sw.dev -m 755 -dir @DIR_LIB@ - ${INSTALL} -idb tiff.sw.dev -m 444 -F @DIR_LIB@ -O libtiff.a + ${LIBTOOL} ${BSD_INSTALL_DATA} libtiff.la @DIR_LIB@ if [ @DSO@dso != nodso ]; then \ ${MAKE} installDSO; \ else \