8a5744
From f7e477ec085414991c8160c7394bfaf2b1425c67 Mon Sep 17 00:00:00 2001
8a5744
From: Karsten Hopp <karsten@fedoraproject.org>
8a5744
Date: Wed, 29 Oct 2014 13:27:27 +0100
8a5744
Subject: [PATCH] remove /lib64 and /usr/lib64 rpath
8a5744
8a5744
---
8a5744
 m4/libtool.m4 | 5 ++++-
8a5744
 1 file changed, 4 insertions(+), 1 deletion(-)
8a5744
8a5744
diff --git a/m4/libtool.m4 b/m4/libtool.m4
8a5744
index f796d7b..41dd20a 100644
8a5744
--- a/m4/libtool.m4
8a5744
+++ b/m4/libtool.m4
8a5744
@@ -2866,6 +2866,9 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8a5744
   # before this can be enabled.
8a5744
   hardcode_into_libs=yes
8a5744
 
8a5744
+  # Add ABI-specific directories to the system library path.
8a5744
+  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
8a5744
+
8a5744
   # Ideally, we could use ldconfig to report *all* directores which are
8a5744
   # searched for libraries, however this is still not possible.  Aside from not
8a5744
   # being certain /sbin/ldconfig is available, command
8a5744
@@ -2874,7 +2877,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8a5744
   # appending ld.so.conf contents (and includes) to the search path.
8a5744
   if test -f /etc/ld.so.conf; then
8a5744
     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
8a5744
-    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8a5744
+    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
8a5744
   fi
8a5744
 
8a5744
   # We used to test for /lib/ld.so.1 and disable shared libraries on
8a5744
-- 
8a5744
2.1.0
8a5744