$OpenBSD: patch-libsnet_Makefile_in,v 1.2 2007/04/01 07:08:39 steven Exp $
--- libsnet/Makefile.in.orig	Wed Mar 31 17:54:40 2004
+++ libsnet/Makefile.in	Sun Apr  1 08:24:30 2007
@@ -14,13 +14,12 @@ LOBJ = snet.lo
 INCPATH=	@CPPFLAGS@ -I.
 DEFS=		
 OPTOPTS=	@OPTOPTS@
-CFLAGS=		${DEFS} ${OPTOPTS} ${INCPATH}
+CFLAGS=		${DEFS} ${OPTOPTS} @CFLAGS@ ${INCPATH}
 PROFILED=	@PROFILED@
 CC=		@CC@	
 
 INSTALL=	@INSTALL@
 AWK=		@AWK@
-LIBTOOL=	./libtool --quiet
 TAGSFILE=	tags
 
 VERSION=	`date +%Y%m%d`
@@ -33,7 +32,7 @@ DISTDIR=	../libsnet-${VERSION}
 	$(LIBTOOL) --mode=compile \
 	  $(CC) -c $(CFLAGS) $<
 	@if test x_$(PROFILED) = x_true ; then echo "building profiled $@" ; \
-	  ( mkdir -p profiled; cd profiled ; ../$(LIBTOOL) --mode=compile \
+	  ( mkdir -p profiled; cd profiled ; $(LIBTOOL) --mode=compile \
 	  $(CC) -c $(CFLAGS) -p -I.. -I$(srcdir) `if [ -f $< ]; then echo $<; \
 	  else echo ../$<; fi` >/dev/null 2>&1 ) ; fi
 
@@ -41,7 +40,7 @@ DISTDIR=	../libsnet-${VERSION}
 	$(LIBTOOL) --mode=compile \
 	  $(CC) -c $(CFLAGS) $<
 	@if test x_$(PROFILED) = x_true ; then echo "building profiled $@" ; \
-	  ( mkdir -p profiled; cd profiled ; ../$(LIBTOOL) --mode=compile \
+	  ( mkdir -p profiled; cd profiled ; $(LIBTOOL) --mode=compile \
 	  $(CC) -c $(CFLAGS) -p -I.. -I$(srcdir) `if [ -f $< ]; then echo $<; \
 	  else echo ../$<; fi` >/dev/null 2>&1 ) ; fi
 
@@ -50,9 +49,9 @@ all:		libsnet.la
 
 libsnet.la:	$(OBJ) $(LOBJ)
 	$(LIBTOOL) --mode=link \
-	  $(CC) -o libsnet.la $(LOBJ) -rpath $(libdir) -version-info 0:0:0
+	  $(CC) -o libsnet.la $(LOBJ) -version-info 0:0:0
 	@if test x_$(PROFILED) = x_true ; then echo "building profiled $@" ; \
-	  ( cd profiled ; ../$(LIBTOOL) --mode=link \
+	  ( cd profiled ; $(LIBTOOL) --mode=link \
 	  $(CC) -o libsnet_p.la $(LOBJ) -rpath $(libdir) \
 	  -version-info 0:0:0 >/dev/null 2>&1 ) ; fi
 
@@ -66,7 +65,7 @@ install:	all
 	  $(INSTALL) -c -m 644 libsnet.la $(libdir)/libsnet.la
 	@if test x_$(PROFILED) = x_true ; then \
 	  echo "installing profiled libraries" ; \
-	  ( cd profiled ; ../$(LIBTOOL) --mode=install \
+	  ( cd profiled ; $(LIBTOOL) --mode=install \
 	  $(INSTALL) -c -m 644 libsnet_p.la \
 	  $(libdir)/libsnet_p.la >/dev/null 2>&1 ) ; fi
 
