mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
Fix linking failures on Solaris. Fixes bug #568481.
Link libgstreamer with $(LIBM) as it uses math functions. Add a configure check for socket and nsl library and add them to LIBS if they're found. This is needed on Solaris for socket() and gethostbyname().
This commit is contained in:
parent
1d3c1380bf
commit
0bf1bd0db0
2 changed files with 5 additions and 1 deletions
|
@ -455,6 +455,10 @@ AC_CHECK_LIB(dl, dladdr,
|
|||
LIBS="$LIBS -ldl")
|
||||
CFLAGS="$save_cflags"
|
||||
|
||||
dnl *** checks for socket and nsl libraries ***
|
||||
AC_CHECK_FUNC(socket,,[AC_CHECK_LIB(socket,socket)])
|
||||
AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])
|
||||
|
||||
dnl check for inet_aton()
|
||||
save_libs="$LIBS"
|
||||
AC_CHECK_FUNC(inet_aton, ,
|
||||
|
|
|
@ -135,7 +135,7 @@ libgstreamer_@GST_MAJORMINOR@_la_LIBADD = \
|
|||
$(XML_LIBS)
|
||||
|
||||
libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = \
|
||||
$(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
|
||||
$(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS) $(LIBM)
|
||||
|
||||
libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
|
||||
|
||||
|
|
Loading…
Reference in a new issue