Blame SOURCES/cryptsetup-add-system-library-paths.patch

7b1c6f
diff -rupN cryptsetup-2.0.4.old/configure cryptsetup-2.0.4/configure
7b1c6f
--- cryptsetup-2.0.4.old/configure	2018-08-03 12:31:52.000000000 +0200
7b1c6f
+++ cryptsetup-2.0.4/configure	2018-08-03 13:42:50.605275535 +0200
7b1c6f
@@ -12300,6 +12300,9 @@ fi
7b1c6f
   # before this can be enabled.
7b1c6f
   hardcode_into_libs=yes
7b1c6f
 
7b1c6f
+  # Add ABI-specific directories to the system library path.
7b1c6f
+  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
7b1c6f
+
7b1c6f
   # Ideally, we could use ldconfig to report *all* directores which are
7b1c6f
   # searched for libraries, however this is still not possible.  Aside from not
7b1c6f
   # being certain /sbin/ldconfig is available, command
7b1c6f
@@ -12308,7 +12311,7 @@ fi
7b1c6f
   # appending ld.so.conf contents (and includes) to the search path.
7b1c6f
   if test -f /etc/ld.so.conf; then
7b1c6f
     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' ' '`
7b1c6f
-    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7b1c6f
+    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
7b1c6f
   fi
7b1c6f
 
7b1c6f
   # We used to test for /lib/ld.so.1 and disable shared libraries on