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