mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-27 01:20:36 +00:00
Meson: Check for dladdr with MinGW
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
This commit is contained in:
parent
ad40715f35
commit
bfd9f3201e
14
meson.build
14
meson.build
@ -1223,14 +1223,12 @@ ld_args_build_id = cc.get_supported_link_arguments('-Wl,--build-id=sha1')
|
||||
|
||||
# check for dl support
|
||||
dep_dl = null_dep
|
||||
if host_machine.system() != 'windows'
|
||||
if not cc.has_function('dlopen')
|
||||
dep_dl = cc.find_library('dl')
|
||||
endif
|
||||
if cc.has_function('dladdr', dependencies : dep_dl)
|
||||
# This is really only required for megadrivers
|
||||
pre_args += '-DHAVE_DLADDR'
|
||||
endif
|
||||
if not cc.has_function('dlopen')
|
||||
dep_dl = cc.find_library('dl', required : host_machine.system() != 'windows')
|
||||
endif
|
||||
if cc.has_function('dladdr', dependencies : dep_dl)
|
||||
# This is really only required for megadrivers
|
||||
pre_args += '-DHAVE_DLADDR'
|
||||
endif
|
||||
|
||||
if cc.has_function('dl_iterate_phdr')
|
||||
|
Loading…
Reference in New Issue
Block a user