Blame ExtUtils-MakeMaker-6.72-Link-to-libperl-explicitly-on-Linux.patch

a9a766e
From a1fe52f21edba0abf0b3cae4c826cadd3ac714c3 Mon Sep 17 00:00:00 2001
999ae19
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
999ae19
Date: Tue, 2 Jul 2013 10:28:15 +0200
a9a766e
Subject: [PATCH 2/2] Link to libperl explicitly on Linux
999ae19
MIME-Version: 1.0
999ae19
Content-Type: text/plain; charset=UTF-8
999ae19
Content-Transfer-Encoding: 8bit
999ae19
999ae19
<https://bugzilla.redhat.com/show_bug.cgi?id=960048>
999ae19
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=327585#50>
999ae19
999ae19
Signed-off-by: Petr Písař <ppisar@redhat.com>
999ae19
---
999ae19
 lib/ExtUtils/MM_Unix.pm | 8 +++++++-
999ae19
 1 file changed, 7 insertions(+), 1 deletion(-)
999ae19
999ae19
diff --git a/lib/ExtUtils/MM_Unix.pm b/lib/ExtUtils/MM_Unix.pm
a9a766e
index 8fafcdf..e645940 100644
999ae19
--- a/lib/ExtUtils/MM_Unix.pm
999ae19
+++ b/lib/ExtUtils/MM_Unix.pm
999ae19
@@ -31,6 +31,7 @@ BEGIN {
999ae19
     $Is{IRIX}    = $^O eq 'irix';
999ae19
     $Is{NetBSD}  = $^O eq 'netbsd';
999ae19
     $Is{Interix} = $^O eq 'interix';
999ae19
+    $Is{Linux}   = $^O eq 'linux';
999ae19
     $Is{SunOS4}  = $^O eq 'sunos';
999ae19
     $Is{Solaris} = $^O eq 'solaris';
999ae19
     $Is{SunOS}   = $Is{SunOS4} || $Is{Solaris};
a9a766e
@@ -936,7 +937,7 @@ $(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $(BOOTSTRAP) $(INST_ARCHAUTODIR)$(DFSEP).
999ae19
 
999ae19
     my $libs = '$(LDLOADLIBS)';
999ae19
 
999ae19
-    if (($Is{NetBSD} || $Is{Interix}) && $Config{'useshrplib'} eq 'true') {
999ae19
+    if (($Is{Linux} || $Is{NetBSD} || $Is{Interix}) && $Config{'useshrplib'} eq 'true') {
999ae19
 	# Use nothing on static perl platforms, and to the flags needed
999ae19
 	# to link against the shared libperl library on shared perl
999ae19
 	# platforms.  We peek at lddlflags to see if we need -Wl,-R
a9a766e
@@ -945,6 +946,11 @@ $(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $(BOOTSTRAP) $(INST_ARCHAUTODIR)$(DFSEP).
999ae19
             $libs .= ' -L$(PERL_INC) -Wl,-R$(INSTALLARCHLIB)/CORE -Wl,-R$(PERL_ARCHLIB)/CORE -lperl';
999ae19
         } elsif ($Config{'lddlflags'} =~ /-R/) {
999ae19
             $libs .= ' -L$(PERL_INC) -R$(INSTALLARCHLIB)/CORE -R$(PERL_ARCHLIB)/CORE -lperl';
999ae19
+        } else {
999ae19
+            if ($ENV{PERL_CORE}) {
999ae19
+                $libs .= ' -L$(PERL_INC)';
999ae19
+            }
999ae19
+            $libs .= ' -lperl';
999ae19
         }
999ae19
     }
999ae19
 
999ae19
-- 
999ae19
1.8.1.4
999ae19