diff -up Net-Pcap-0.17/Makefile.PL.orig Net-Pcap-0.17/Makefile.PL
--- Net-Pcap-0.17/Makefile.PL.orig 2012-11-27 16:06:02.000000000 -0700
+++ Net-Pcap-0.17/Makefile.PL 2013-01-18 08:20:19.145064264 -0700
@@ -7,6 +7,7 @@ use File::Spec;
my ($DEBUG, %options, $DEVNULL, $is_Win32, $has_Win32);
+$DEBUG=1;
if ($^O eq 'MSWin32') {
$options{LIBS} = '-lwpcap';
@@ -22,7 +23,7 @@ elsif ($^O eq 'cygwin') {
cygwin_pcap_headers();
}
else {
- $options{CCFLAGS} = "-Wall -Wwrite-strings"
+ $options{CCFLAGS} = "-Wall -Wwrite-strings $Config{ccflags}"
if $Config{ccname} eq "gcc" and $] >= 5.006;
$options{LIBS} = '-lpcap';
}