Meson: Check for dladdr with MinGW
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
This commit is contained in:
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
|
# check for dl support
|
||||||
dep_dl = null_dep
|
dep_dl = null_dep
|
||||||
if host_machine.system() != 'windows'
|
if not cc.has_function('dlopen')
|
||||||
if not cc.has_function('dlopen')
|
dep_dl = cc.find_library('dl', required : host_machine.system() != 'windows')
|
||||||
dep_dl = cc.find_library('dl')
|
endif
|
||||||
endif
|
if cc.has_function('dladdr', dependencies : dep_dl)
|
||||||
if cc.has_function('dladdr', dependencies : dep_dl)
|
# This is really only required for megadrivers
|
||||||
# This is really only required for megadrivers
|
pre_args += '-DHAVE_DLADDR'
|
||||||
pre_args += '-DHAVE_DLADDR'
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if cc.has_function('dl_iterate_phdr')
|
if cc.has_function('dl_iterate_phdr')
|
||||||
|
Reference in New Issue
Block a user