mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
build/coretracers: add dep on threads
Fixes the following build error and missing '-pthread' argument when linking: subprojects/gstreamer/plugins/tracers/libgstcoretracers.so.p/gstleaks.c.o: In function `gst_leaks_tracer_setup_signals': /work/build32/../subprojects/gstreamer/plugins/tracers/gstleaks.c:919: undefined reference to `pthread_atfork' Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/571>
This commit is contained in:
parent
aaa95cfef7
commit
056cad44c3
1 changed files with 3 additions and 1 deletions
|
@ -22,11 +22,13 @@ endif
|
||||||
|
|
||||||
tracers_args = gst_c_args + ['-DGST_USE_UNSTABLE_API']
|
tracers_args = gst_c_args + ['-DGST_USE_UNSTABLE_API']
|
||||||
|
|
||||||
|
thread_dep = dependency('threads', required : false)
|
||||||
|
|
||||||
gst_tracers = library('gstcoretracers',
|
gst_tracers = library('gstcoretracers',
|
||||||
gst_tracers_sources,
|
gst_tracers_sources,
|
||||||
c_args : tracers_args,
|
c_args : tracers_args,
|
||||||
include_directories : [configinc],
|
include_directories : [configinc],
|
||||||
dependencies : [gst_dep],
|
dependencies : [gst_dep, thread_dep],
|
||||||
install : true,
|
install : true,
|
||||||
install_dir : plugins_install_dir,
|
install_dir : plugins_install_dir,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue