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