$NetBSD: patch-ab,v 1.3 2017/06/14 12:17:30 jperkin Exp $ Use pkgsrc flags/paths. --- Makefile.in.orig 2004-04-09 23:38:56.000000000 +0000 +++ Makefile.in @@ -9,7 +9,7 @@ CC= gcc AR=/usr/bin/ar RANLIB=/usr/bin/ranlib -CCOPT= -O2 -Wall @PCAP_INCLUDE@ @TCL_INC@ @USE_TCL@ +CCOPT= $(CFLAGS) @PCAP_INCLUDE@ @TCL_INC@ @USE_TCL@ DEBUG= -g #uncomment the following if you need libpcap based build under linux #(not raccomanded) @@ -50,14 +50,14 @@ libars.a: $(ARSOBJ) $(RANLIB) $@ hping3: byteorder.h $(OBJ) - $(CC) -o hping3 $(CCOPT) $(DEBUG) $(OBJ) -L/usr/local/lib $(PCAP) @SOLARISLIB@ @TCL_LIB@ + $(CC) -o hping3 $(CCOPT) $(DEBUG) $(OBJ) -L@PREFIX@/lib ${COMPILER_RPATH_FLAG}@PREFIX@/lib $(PCAP) @SOLARISLIB@ @TCL_LIB@ @echo ./hping3 -v @echo "use \`make strip' to strip hping3 binary" @echo "use \`make install' to install hping3" hping3-static: byteorder.h $(OBJ) - $(CC) -static -o hping3-static $(CCOPT) $(DEBUG) $(OBJ) -L/usr/local/lib $(PCAP) @SOLARISLIB@ @TCL_LIB@ -ldl + $(CC) -static -o hping3-static $(CCOPT) $(DEBUG) $(OBJ) -L@PREFIX@/lib $(PCAP) @SOLARISLIB@ @TCL_LIB@ -ldl byteorder.h: ./configure