diff options
Diffstat (limited to 'net/driftnet/files/patch-Makefile')
-rw-r--r-- | net/driftnet/files/patch-Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/net/driftnet/files/patch-Makefile b/net/driftnet/files/patch-Makefile new file mode 100644 index 000000000000..ed4720a3fa2b --- /dev/null +++ b/net/driftnet/files/patch-Makefile @@ -0,0 +1,42 @@ +--- Makefile.orig Tue Jul 9 21:26:41 2002 ++++ Makefile Tue Aug 20 02:33:18 2002 +@@ -16,23 +16,23 @@ + #CC = gcc + + # Basic compiler, linker flags; should not need any changes. +-CFLAGS += -g -Wall +-LDFLAGS += -g ++#CFLAGS += -g -Wall ++#LDFLAGS += -g + + # You might need these if libpcap is installed somewhere random. +-CFLAGS += -I/usr/include/pcap ++#CFLAGS += -I/usr/include/pcap + #LDFLAGS += -L/path/to/libpcap.so + + # Required on Linux to get BSDish definitions of the TCP/IP structs. +-CFLAGS += -D_BSD_SOURCE ++#CFLAGS += -D_BSD_SOURCE + + # We always need the pcap and pthread libraries. +-LDLIBS += -lpcap -lpthread ++LDLIBS += -lpcap ${PTHREAD_LIBS} + + # Optional C compiler and linker flags. Typical driftnet builds have support + # for displaying captured images in an X window, and need the following flags: +-CFLAGS += `gtk-config --cflags` +-LDLIBS += -ljpeg -lungif `gtk-config --libs` ++CFLAGS += ${PTHREAD_CFLAGS} `${GTK_CONFIG} --cflags` ++LDLIBS += -ljpeg -lungif `${GTK_CONFIG} --libs` + + # Alternatively, you can build a version of driftnet which can only be used + # in `adjunct' mode as the back end for some other image-processing program. To +@@ -51,7 +51,7 @@ + + # added 20020604 edobbs + # On BSD systems, may need to use /usr/local/include +-#CFLAGS += -I/usr/local/include ++CFLAGS += -I/usr/local/include + + + # |