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

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