$NetBSD: patch-ak,v 1.6 2009/11/23 16:00:34 joerg Exp $ Libtoolize. --- src/dbase/makefile.orig 2006-11-08 17:00:45.000000000 +0100 +++ src/dbase/makefile 2006-11-08 17:03:35.000000000 +0100 @@ -10,19 +10,19 @@ GMTSRCDIR = .. include ../gmtalldeps.macros -CDF = -L$(NETCDF)/lib -lnetcdf +CDF = -Wl,-R$(NETCDF)/lib -L$(NETCDF)/lib -lnetcdf CFLAGS = $(CC_OPT) $(WIN32) $(SWAP) -I$(srcdir) -I$(NETCDF)/include all: grdraster install: all - $(INSTALL) grdraster$(EXE) $(bindir) + @$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) grdraster$(EXE) $(bindir) uninstall: \rm -f $(bindir)/grdraster$(EXE) -grdraster: grdraster.o $(GMTLIB) - $(CC) $(CFLAGS) $(LDFLAGS) grdraster.o -L.. -L$(libdir) -lgmt $(CDF) $(LIBS) -o grdraster +grdraster: grdraster.o + @$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) grdraster.lo -L$(PLAIN_LIBDIR) ../libgmt.la ../libpsl.la $(CDF) $(LIBS) -o grdraster spotless: clean @@ -30,4 +30,4 @@ rm -f *.o grdraster$(EXE) .c.o: $(GMT_H) - $(CC) -c $(CFLAGS) $< + @$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -c $(CFLAGS) $<