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