Skip to content

Commit

Permalink
backport find_lib() fix to get the latest version of the libraries.
Browse files Browse the repository at this point in the history
(default 2.0 branch commit: ee9c13257398)
  • Loading branch information
sezero committed Oct 14, 2018
1 parent c65b1ac commit 9927b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.in
Expand Up @@ -116,7 +116,7 @@ find_lib()
host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
fi
for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
lib=[`ls -- $path/$1 2>/dev/null | sort | sed 's/.*\/\(.*\)/\1/; q'`]
lib=[`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`]
if test x$lib != x; then
echo $lib
return
Expand Down

0 comments on commit 9927b07

Please sign in to comment.