components/libnet/patches/makefile.in.patch
changeset 423 416940827b10
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/libnet/patches/makefile.in.patch	Tue Jul 19 11:37:03 2011 -0700
@@ -0,0 +1,41 @@
+--- libnet-1.1.2.1/src/Makefile.in.orig	Thu Jul 14 14:55:19 2011
++++ libnet-1.1.2.1/src/Makefile.in	Thu Jul 14 14:55:34 2011
+@@ -109,7 +109,7 @@
+ 
+ DISTCLEANFILES = *~
+ 
+-lib_LIBRARIES = libnet.a
++lib_LIBRARIES = libnet.a libnet.so
+ 
+ libnet_a_SOURCES = libnet_asn1.c \
+ 			libnet_build_802.1q.c \
+@@ -163,7 +163,7 @@
+ 			libnet_link_dlpi.c \
+ 			libnet_link_linux.c \
+ 			libnet_link_nit.c \
+- 			libnet_link_none.c \
++			libnet_link_none.c \
+ 			libnet_link_pf.c \
+ 			libnet_link_snit.c \
+ 			libnet_link_snoop.c \
+@@ -269,6 +269,10 @@
+ 	$(libnet_a_AR) libnet.a $(libnet_a_OBJECTS) $(libnet_a_LIBADD)
+ 	$(RANLIB) libnet.a
+ 
++libnet.so: $(libnet_a_OBJECTS) $(libnet_a_DEPENDENCIES) 
++	-rm -f libnet.so
++	$(CC) $(CFLAGS) -shared -o libnet.so $(libnet_a_OBJECTS) $(libnet_a_LIBADD) -Wl,-soname=libnet.so
++
+ mostlyclean-compile:
+ 	-rm -f *.$(OBJEXT) core *.core
+ 
+@@ -379,6 +383,9 @@
+ 
+ clean-am: clean-generic clean-libLIBRARIES mostlyclean-am
+ 
++clean-obj:
++	rm -f *.o
++
+ distclean: distclean-am
+ 
+ distclean-am: clean-am distclean-compile distclean-generic \