1
0
forked from pool/util-linux
util-linux/which-lib64.patch

19 lines
555 B
Diff

--- acinclude.m4
+++ acinclude.m4
@@ -10,10 +10,13 @@
dnl may have different results.
ac_lib_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'`
AC_CACHE_VAL(ac_cv_lib_static_$ac_lib_var,
+if test ! -z `grep 64 $libdir; then
+ libsuffix=64
+fi
if test -r /etc/ld.so.conf ; then
- ld_so_paths="/lib /usr/lib `cat /etc/ld.so.conf`"
+ ld_so_paths="/lib${libsuffix} /usr/lib${libsuffix} `cat /etc/ld.so.conf`"
else
- ld_so_paths="/lib /usr/lib"
+ ld_so_paths="/lib${libsuffix} /usr/lib${libsuffix}"
fi
for path in $ld_so_paths; do
[ac_save_LIBS="$LIBS"