mirror of
https://github.com/yawut/SDL.git
synced 2026-07-04 17:48:14 -05:00
Improved find_lib, gets the latest version of libpng, etc.
This commit is contained in:
parent
61d2aee816
commit
bc032c1d7b
|
|
@ -119,7 +119,7 @@ find_lib()
|
|||
host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
|
||||
fi
|
||||
for path in $gcc_bin_path $gcc_lib_path $env_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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user