Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
d17b37cf
Commit
d17b37cf
authored
Aug 06, 2009
by
Rémi Denis-Courmont
Browse files
vlc-wrapper needs -lsocket on Solaris (fixes: #3035)
parent
a924dfab
Changes
2
Hide whitespace changes
Inline
Side-by-side
bin/Makefile.am
View file @
d17b37cf
...
...
@@ -23,6 +23,7 @@ vlc_SOURCES = winvlc.c
endif
vlc_wrapper_SOURCES
=
rootwrap.c
vlc_wrapper_LDADD
=
$(SOCKET_LIBS)
vlc_DEPENDENCIES
=
../src/libvlc.sym
vlc_LDFLAGS
=
`
$(VLC_CONFIG)
--ldflags
vlc
`
...
...
configure.ac
View file @
d17b37cf
...
...
@@ -596,12 +596,14 @@ if test ${ac_cv_langinfo_codeset} = yes; then
[Define if you have <langinfo.h> and nl_langinfo(CODESET).])
fi
SOCKET_LIBS=""
AC_CHECK_FUNCS(connect,,[
AC_CHECK_LIB(socket,connect,[
VLC_ADD_LIBS([libvlccore cdda cddax],-lsocket)
LIBS_socket
="-lsocket"
SOCKET_LIBS
="-lsocket"
])
])
AC_SUBST(SOCKET_LIBS)
AC_CHECK_FUNCS(send,,[
AC_CHECK_LIB(socket,send,[
...
...
@@ -652,7 +654,7 @@ dnl -lnsl and -lsocket are needed on Solaris;
dnl we purposedly make the test fail on Windows
LIBS_save="${LIBS}"
AH_TEMPLATE(HAVE_GETADDRINFO, [Define to 1 if you have the `getaddrinfo' function.])
AC_SEARCH_LIBS([getaddrinfo], [nsl], [AC_DEFINE(HAVE_GETADDRINFO)],, [${
LIBS_socket
}])
AC_SEARCH_LIBS([getaddrinfo], [nsl], [AC_DEFINE(HAVE_GETADDRINFO)],, [${
SOCKET_LIBS
}])
dnl NOTE: we assume getaddrinfo will be present if getnameinfo or gai_strerro
dnl are
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment