$NetBSD: patch-ab,v 1.5 2009/06/30 00:07:13 joerg Exp $ --- macros.make.in.orig 2004-12-18 16:32:32.000000000 +0000 +++ macros.make.in @@ -29,10 +29,10 @@ CXXCPPFLAGS = $(CPPFLAGS) # Compilation: -CC = @CC@ -CXX = @CXX@ -FC = @FC@ -F90 = @F90@ +CC = $(LIBTOOL) --mode=compile @CC@ +CXX = $(LIBTOOL) --mode=compile @CXX@ +FC = $(LIBTOOL) --mode=compile @FC@ +F90 = $(LIBTOOL) --mode=compile @F90@ CFLAGS = @CFLAGS@ CXXFLAGS = @CXXFLAGS@ FFLAGS = @FFLAGS@ @IGNORE_FPE@ @@ -53,11 +53,11 @@ FLIBS = @FLIBS@ F90LIBS = @F90LIBS@ LIBS = @LIBS@ F90LDFLAGS = $(LDFLAGS) -LINK.c = $(CC) -o $@ $(CFLAGS) $(LDFLAGS) -LINK.cxx = $(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) -LINK.F = $(FC) -o $@ $(FFLAGS) $(FLDFLAGS) -LINK.f = $(FC) -o $@ $(FFLAGS) $(FLDFLAGS) -LINK.F90 = $(F90) -o $@ $(F90FLAGS) $(F90LDFLAGS) +LINK.c = $(LIBTOOL) --mode=link @CC@ -o $@ $(CFLAGS) $(LDFLAGS) +LINK.cxx = $(LIBTOOL) --mode=link @CXX@ -o $@ $(CXXFLAGS) $(LDFLAGS) +LINK.F = $(LIBTOOL) --mode=link @FC@ -o $@ $(FFLAGS) $(FLDFLAGS) +LINK.f = $(LIBTOOL) --mode=link @FC@ -o $@ $(FFLAGS) $(FLDFLAGS) +LINK.F90 = $(LIBTOOL) --mode=link @F90@ -o $@ $(F90FLAGS) $(F90LDFLAGS) # Manual pages: @@ -68,9 +68,9 @@ MAKEWHATIS_CMD = @MAKEWHATIS_CMD@ # Misc. Utilities: -AR = @AR@ -ARFLAGS = @ARFLAGS@ -RANLIB = @RANLIB@ +AR = $(LIBTOOL) --mode=link @CC@ +ARFLAGS = -rpath $(prefix)/lib -version-info 3:6 +RANLIB = echo TARFLAGS = -chf