mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
gstreamer: Solaris/Illumos require linking to libnsl / libsocket for various socket APIs
Patch by Tim Mooney <Tim.Mooney@ndsu.edu> from OpenIndiana/oi-userland Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6925>
This commit is contained in:
parent
ecf852d529
commit
1f12493787
5 changed files with 19 additions and 4 deletions
|
@ -274,7 +274,7 @@ libgst = library('gstreamer-1.0', gst_sources,
|
||||||
link_with : printf_lib,
|
link_with : printf_lib,
|
||||||
install : true,
|
install : true,
|
||||||
dependencies : [gobject_dep, gmodule_dep, glib_dep, mathlib, dl_dep,
|
dependencies : [gobject_dep, gmodule_dep, glib_dep, mathlib, dl_dep,
|
||||||
backtrace_deps, platform_deps, extra_deps],
|
backtrace_deps, platform_deps, network_deps, extra_deps],
|
||||||
)
|
)
|
||||||
|
|
||||||
gst_compile_args = []
|
gst_compile_args = []
|
||||||
|
|
|
@ -32,7 +32,7 @@ gst_net = library('gstnet-@0@'.format(apiversion),
|
||||||
soversion : soversion,
|
soversion : soversion,
|
||||||
darwin_versions : osxversion,
|
darwin_versions : osxversion,
|
||||||
install : true,
|
install : true,
|
||||||
dependencies : [gio_dep, gst_base_dep, dl_dep],
|
dependencies : [gio_dep, gst_base_dep, dl_dep, network_deps],
|
||||||
)
|
)
|
||||||
|
|
||||||
library_def = {'lib': gst_net}
|
library_def = {'lib': gst_net}
|
||||||
|
|
|
@ -573,6 +573,21 @@ mathlib = cc.find_library('m', required : false)
|
||||||
# Also provides clock_gettime in glibc < 2.17
|
# Also provides clock_gettime in glibc < 2.17
|
||||||
rt_lib = cc.find_library('rt', required : false)
|
rt_lib = cc.find_library('rt', required : false)
|
||||||
|
|
||||||
|
#
|
||||||
|
# Solaris and Illumos distros split a lot of networking-related code
|
||||||
|
# into '-lsocket -lnsl'. Anything that calls socketpair(), getifaddr(),
|
||||||
|
# etc. probably needs to include network_deps
|
||||||
|
#
|
||||||
|
socket_lib = cc.find_library('socket', required: false)
|
||||||
|
nsl_lib = cc.find_library('nsl', required: false)
|
||||||
|
network_deps = []
|
||||||
|
if socket_lib.found()
|
||||||
|
network_deps += socket_lib
|
||||||
|
endif
|
||||||
|
if nsl_lib.found()
|
||||||
|
network_deps += nsl_lib
|
||||||
|
endif
|
||||||
|
|
||||||
gir = find_program('g-ir-scanner', required : get_option('introspection'))
|
gir = find_program('g-ir-scanner', required : get_option('introspection'))
|
||||||
gnome = import('gnome')
|
gnome = import('gnome')
|
||||||
|
|
||||||
|
|
|
@ -137,7 +137,7 @@ if get_option('check').disabled()
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
gst_deps = [gst_dep, gst_base_dep, gst_check_dep, gst_net_dep, gst_controller_dep, gio_dep, gmodule_dep]
|
gst_deps = [gst_dep, gst_base_dep, gst_check_dep, gst_net_dep, gst_controller_dep, gio_dep, gmodule_dep, network_deps]
|
||||||
|
|
||||||
foreach t : core_tests
|
foreach t : core_tests
|
||||||
fname = t[0]
|
fname = t[0]
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
executable('netclock-replay', 'netclock-replay.c',
|
executable('netclock-replay', 'netclock-replay.c',
|
||||||
include_directories: libsinc,
|
include_directories: libsinc,
|
||||||
dependencies : [gio_dep, gst_dep])
|
dependencies : [gio_dep, gst_dep, network_deps])
|
||||||
|
|
Loading…
Reference in a new issue