mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
meson: conditionally include -ldl in gbm pkg-config file
Follow libGL and only include -ldl in gbm pkg-config file if libdl was
actually found. Many systems have these functions in libc and don't
have libdl.
Fixes: 816bf7d164 ("meson: build gbm")
Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5630>
This commit is contained in:
parent
c97af23b13
commit
0398caa97f
2 changed files with 7 additions and 1 deletions
|
|
@ -1853,6 +1853,12 @@ if dep_dl.found()
|
||||||
gl_priv_libs += '-ldl'
|
gl_priv_libs += '-ldl'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# FIXME: autotools lists this as incomplete
|
||||||
|
gbm_priv_libs = []
|
||||||
|
if dep_dl.found()
|
||||||
|
gbm_priv_libs += '-ldl'
|
||||||
|
endif
|
||||||
|
|
||||||
pkg = import('pkgconfig')
|
pkg = import('pkgconfig')
|
||||||
|
|
||||||
if host_machine.system() == 'windows'
|
if host_machine.system() == 'windows'
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ pkg.generate(
|
||||||
description : 'Mesa gbm library',
|
description : 'Mesa gbm library',
|
||||||
version : meson.project_version(),
|
version : meson.project_version(),
|
||||||
libraries : libgbm,
|
libraries : libgbm,
|
||||||
libraries_private : '-ldl', # FIXME: autotools lists this a incomplete
|
libraries_private : gbm_priv_libs,
|
||||||
)
|
)
|
||||||
|
|
||||||
if with_symbols_check
|
if with_symbols_check
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue