mirror of
https://github.com/mpv-player/mpv
synced 2025-02-03 05:31:34 +00:00
Make the socklib check search gethostbyname/socket in libc.
On glibc it avoids a useless linking to libnsl. patch by Emanuele Giaquinta, e.giaquinta glauco it git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20157 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b58659a503
commit
6ee7a1bef2
2
configure
vendored
2
configure
vendored
@ -2744,7 +2744,7 @@ cat > $TMPC << EOF
|
||||
int main(void) { (void) gethostbyname(0); (void) socket(AF_INET, SOCK_STREAM, 0); return 0; }
|
||||
EOF
|
||||
_socklib=no
|
||||
for _ld_tmp in "-lsocket -lbind" "-lsocket -ldnet" "-lsocket -lnsl" "-lnsl" "-lsocket" ; do
|
||||
for _ld_tmp in "" "-lsocket -lbind" "-lsocket -ldnet" "-lsocket -lnsl" "-lnsl" "-lsocket" ; do
|
||||
cc_check $_ld_tmp && _ld_sock="$_ld_tmp" && _socklib=yes && break
|
||||
done
|
||||
if test $_winsock2 = auto && not cygwin ; then
|
||||
|
Loading…
Reference in New Issue
Block a user