Blame SOURCES/perl-5.22.0-Install-libperl.so-to-shrpdir-on-Linux.patch

243a19
From 9644657c4 10326749fd321d9c24944ec25afad2f Mon Sep 17 00:00:00 2001
243a19
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
243a19
Date: Thu, 20 Jun 2013 15:22:53 +0200
243a19
Subject: [PATCH] Install libperl.so to shrpdir on Linux
243a19
MIME-Version: 1.0
243a19
Content-Type: text/plain; charset=UTF-8
243a19
Content-Transfer-Encoding: 8bit
243a19
243a19
Signed-off-by: Petr Písař <ppisar@redhat.com>
243a19
---
243a19
 Configure   | 7 ++++---
243a19
 Makefile.SH | 2 +-
243a19
 2 files changed, 5 insertions(+), 4 deletions(-)
243a19
243a19
diff --git a/Configure b/Configure
243a19
index 2f30261..825496e 100755
243a19
--- a/Configure
243a19
+++ b/Configure
243a19
@@ -8249,7 +8249,9 @@ esac
243a19
 
243a19
 # Detect old use of shrpdir via undocumented Configure -Dshrpdir
243a19
 case "$shrpdir" in
243a19
-'') ;;
243a19
+'') 
243a19
+shrpdir=$archlibexp/CORE
243a19
+;;
243a19
 *)	$cat >&4 <
243a19
 WARNING:  Use of the shrpdir variable for the installation location of
243a19
 the shared $libperl is not supported.  It was never documented and
243a19
@@ -8279,7 +8281,6 @@ esac
243a19
 # Add $xxx to ccdlflags.
243a19
 # If we can't figure out a command-line option, use $shrpenv to
243a19
 # set env LD_RUN_PATH.  The main perl makefile uses this.
243a19
-shrpdir=$archlibexp/CORE
243a19
 xxx=''
243a19
 tmp_shrpenv=''
243a19
 if "$useshrplib"; then
243a19
@@ -8294,7 +8295,7 @@ if "$useshrplib"; then
243a19
 		xxx="-Wl,-R$shrpdir"
243a19
 		;;
243a19
 	bsdos|linux|irix*|dec_osf|gnu*|haiku)
243a19
-		xxx="-Wl,-rpath,$shrpdir"
243a19
+		# We want standard path
243a19
 		;;
243a19
 	hpux*)
243a19
 		# hpux doesn't like the default, either.
243a19
diff --git a/Makefile.SH b/Makefile.SH
243a19
index 7733a32..a481183 100755
243a19
--- a/Makefile.SH
243a19
+++ b/Makefile.SH
243a19
@@ -266,7 +266,7 @@ ranlib = $ranlib
243a19
 # installman commandline.
243a19
 bin = $installbin
243a19
 scriptdir = $scriptdir
243a19
-shrpdir = $archlibexp/CORE
243a19
+shrpdir = $shrpdir
243a19
 privlib = $installprivlib
243a19
 man1dir = $man1dir
243a19
 man1ext = $man1ext
243a19
-- 
243a19
1.8.1.4