mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
build: Fix dependency objects for system libraries
The dependency checks for system libraries is not really portable.
Not all C standard libraries have separate rt and math libraries, so the
requirement should be set to false.
Additionally, finding threading libraries should be left to Meson
itself, using the `dependency('threads')` object, which will do the
right thing depending on platform and compiler.
This commit is contained in:
parent
f9ed917814
commit
d99f5defa3
1 changed files with 4 additions and 4 deletions
|
|
@ -141,10 +141,10 @@ configure_file(input : 'Makefile.in',
|
|||
configuration : makedata)
|
||||
|
||||
# Find dependencies
|
||||
mathlib = cc.find_library('m', required : true)
|
||||
rt_lib = cc.find_library('rt', required : true) # clock_gettime
|
||||
dl_lib = cc.find_library('dl', required : true)
|
||||
pthread_lib = cc.find_library('pthread', required : true)
|
||||
mathlib = cc.find_library('m', required : false)
|
||||
rt_lib = cc.find_library('rt', required : false) # clock_gettime
|
||||
dl_lib = cc.find_library('dl', required : false)
|
||||
pthread_lib = dependency('threads')
|
||||
dbus_dep = dependency('dbus-1')
|
||||
|
||||
#optional dependencies
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue