mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-02-02 07:41:12 +00:00
Revert "autotools: relax soname pattern for dynamic loading"
This reverts commit 8553632827
.
An issue with choosing the shortest one, is that it will prefer development libraries: libfoo.so is shorter then libfoo.so.0.6.
This commit is contained in:
parent
36d8460c9e
commit
d5b8cf72f4
|
@ -64,11 +64,6 @@ AC_PROG_EGREP
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
AC_PROG_MAKE_SET
|
AC_PROG_MAKE_SET
|
||||||
PKG_PROG_PKG_CONFIG
|
PKG_PROG_PKG_CONFIG
|
||||||
AC_PROG_AWK
|
|
||||||
|
|
||||||
if test -z "$AWK"; then
|
|
||||||
AC_MSG_ERROR([*** Required awk tool not found!])
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl 64-bit file offsets if possible unless --disable-largefile is specified
|
dnl 64-bit file offsets if possible unless --disable-largefile is specified
|
||||||
AC_SYS_LARGEFILE
|
AC_SYS_LARGEFILE
|
||||||
|
@ -186,7 +181,7 @@ find_lib()
|
||||||
host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
|
host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
|
||||||
fi
|
fi
|
||||||
for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
|
for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
|
||||||
lib=[`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | $AWK '{print length() " " $0;}' | sort -n -r | tail -1 | sed 's/^[0-9]\+ //'`]
|
lib=[`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`]
|
||||||
if test x$lib != x; then
|
if test x$lib != x; then
|
||||||
echo $lib
|
echo $lib
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue