blob: ab35765ada252c0e5e4bd8ec0425c43d94082190 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$NetBSD: patch-Makefile.PL,v 1.1 2014/01/10 15:40:28 jperkin Exp $
Do not override CCFLAGS and LIBS.
--- Makefile.PL.orig 2007-12-23 23:06:15.000000000 +0000
+++ Makefile.PL
@@ -22,8 +22,8 @@ elsif ($^O eq 'cygwin') {
cygwin_pcap_headers();
}
else {
- $options{CCFLAGS} = '-Wall -Wwrite-strings' if $Config{ccname} eq 'gcc' and $] >= 5.006;
- $options{LIBS} = '-lpcap';
+ $options{CCFLAGS} = "$Config{ccflags} -Wall -Wwrite-strings" if $Config{ccname} eq 'gcc' and $] >= 5.006;
+ $options{LIBS} = "$Config{libs} -lpcap";
}
for my $arg (@ARGV) {
|