[perl-Net-Pcap] add the patch!
Iain Arnell
iarnell at fedoraproject.org
Fri Jun 17 14:22:48 UTC 2011
commit bfecbf495a4c0b4697bd2504c0ff15f98cb7142b
Author: Iain Arnell <iarnell at gmail.com>
Date: Fri Jun 17 16:22:30 2011 +0200
add the patch!
perl-5.14.0-cflags.patch | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/perl-5.14.0-cflags.patch b/perl-5.14.0-cflags.patch
new file mode 100644
index 0000000..1155a57
--- /dev/null
+++ b/perl-5.14.0-cflags.patch
@@ -0,0 +1,20 @@
+diff -up Net-Pcap-0.16/Makefile.PL.orig Net-Pcap-0.16/Makefile.PL
+--- Net-Pcap-0.16/Makefile.PL.orig 2007-12-24 00:06:15.000000000 +0100
++++ Net-Pcap-0.16/Makefile.PL 2011-06-17 12:11:26.970169054 +0200
+@@ -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' if $Config{ccname} eq 'gcc' and $] >= 5.006;
++ $options{CCFLAGS} = "-Wall -Wwrite-strings $Config{ccflags}" if $Config{ccname} eq 'gcc' and $] >= 5.006;
+ $options{LIBS} = '-lpcap';
+ }
+
More information about the scm-commits
mailing list