perl-ExtUtils-MakeMaker/ExtUtils-MakeMaker-6.88-Link-to-libperl-explicitly-on-Linux.patch

55 lines
2.0 KiB
Diff
Raw Normal View History

2014-02-03 09:57:48 +00:00
From 58d583f98d3730f1f75389f7d25f6079cab91357 Mon Sep 17 00:00:00 2001
2013-07-02 10:58:31 +00:00
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Tue, 2 Jul 2013 10:28:15 +0200
2014-02-03 09:57:48 +00:00
Subject: [PATCH] Link to libperl explicitly on Linux
2013-07-02 10:58:31 +00:00
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
<https://bugzilla.redhat.com/show_bug.cgi?id=960048>
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=327585#50>
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
2014-02-03 09:57:48 +00:00
lib/ExtUtils/MM_Unix.pm | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
2013-07-02 10:58:31 +00:00
diff --git a/lib/ExtUtils/MM_Unix.pm b/lib/ExtUtils/MM_Unix.pm
2014-02-03 09:57:48 +00:00
index a889217..0896ea5 100644
2013-07-02 10:58:31 +00:00
--- a/lib/ExtUtils/MM_Unix.pm
+++ b/lib/ExtUtils/MM_Unix.pm
@@ -31,6 +31,7 @@ BEGIN {
$Is{IRIX} = $^O eq 'irix';
$Is{NetBSD} = $^O eq 'netbsd';
$Is{Interix} = $^O eq 'interix';
+ $Is{Linux} = $^O eq 'linux';
$Is{SunOS4} = $^O eq 'sunos';
$Is{Solaris} = $^O eq 'solaris';
$Is{SunOS} = $Is{SunOS4} || $Is{Solaris};
2014-02-03 09:57:48 +00:00
@@ -934,7 +935,7 @@ $(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $(INST_ARCHAUTODIR)$(DFSEP).exists $(EXPO
2013-07-02 10:58:31 +00:00
my $libs = '$(LDLOADLIBS)';
2014-02-03 09:57:48 +00:00
- if (($Is{NetBSD} || $Is{Interix} || $Is{Android}) && $Config{'useshrplib'} eq 'true') {
+ if (($Is{Linux} || $Is{NetBSD} || $Is{Interix} || $Is{Android}) && $Config{'useshrplib'} eq 'true') {
2013-07-02 10:58:31 +00:00
# Use nothing on static perl platforms, and to the flags needed
# to link against the shared libperl library on shared perl
# platforms. We peek at lddlflags to see if we need -Wl,-R
2014-02-03 09:57:48 +00:00
@@ -947,7 +948,12 @@ $(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $(INST_ARCHAUTODIR)$(DFSEP).exists $(EXPO
# The Android linker will not recognize symbols from
# libperl unless the module explicitly depends on it.
$libs .= ' -L$(PERL_INC) -lperl';
- }
+ } else {
+ if ($ENV{PERL_CORE}) {
+ $libs .= ' -L$(PERL_INC)';
+ }
+ $libs .= ' -lperl';
+ }
2013-07-02 10:58:31 +00:00
}
2014-02-03 09:57:48 +00:00
my $ld_run_path_shell = "";
2013-07-02 10:58:31 +00:00
--
2014-02-03 09:57:48 +00:00
1.8.5.3
2013-07-02 10:58:31 +00:00