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