Subject: | [PATCH] Makefile.PL fixes for rhel6 |
Hi,
I've attached a patch to build Net::LibProxy on rhel6.
Cheers
David
Subject: | libproxy_makefile.patch |
diff -Naur old/Makefile.PL new/Makefile.PL
--- old/Makefile.PL 2009-06-07 23:08:17.000000000 +1000
+++ new/Makefile.PL 2017-07-07 08:57:39.194497097 +1000
@@ -12,6 +12,8 @@
if ($^O ne 'MSWin32') {
$lflags = `pkg-config libproxy-1.0 --libs`;
+ $cflags = `pkg-config libproxy-1.0 --cflags`;
+ $cflags =~ s/\s*$//smx;
}
# Let Module::Install generate META.yml and other necessary files.
@@ -19,6 +21,6 @@
'NAME' => 'Net::Libproxy',
'VERSION_FROM' => 'lib/Net/Libproxy.pm', # finds $VERSION
'LIBS' => "$ldflags $lflags", # e.g., '-lm'
- 'INC' => "."
+ 'INC' => "$cflags .",
);