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