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

0f7e16
diff -rupN cryptsetup-2.2.0.old/configure cryptsetup-2.2.0/configure
0f7e16
--- cryptsetup-2.2.0.old/configure	2019-08-14 20:45:07.000000000 +0200
0f7e16
+++ cryptsetup-2.2.0/configure	2019-08-15 09:11:14.775184005 +0200
0f7e16
@@ -12294,6 +12294,9 @@ fi
0f7e16
   # before this can be enabled.
0f7e16
   hardcode_into_libs=yes
0f7e16
 
0f7e16
+  # Add ABI-specific directories to the system library path.
0f7e16
+  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
0f7e16
+
0f7e16
   # Ideally, we could use ldconfig to report *all* directores which are
0f7e16
   # searched for libraries, however this is still not possible.  Aside from not
0f7e16
   # being certain /sbin/ldconfig is available, command
0f7e16
@@ -12302,7 +12305,7 @@ fi
0f7e16
   # appending ld.so.conf contents (and includes) to the search path.
0f7e16
   if test -f /etc/ld.so.conf; then
0f7e16
     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' ' '`
0f7e16
-    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
0f7e16
+    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
0f7e16
   fi
0f7e16
 
0f7e16
   # We used to test for /lib/ld.so.1 and disable shared libraries on