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