mirror of https://github.com/ArduPilot/ardupilot
waf: use define_name in libdl check
This commit is contained in:
parent
a5adae5fb4
commit
1b12371e25
|
@ -195,8 +195,7 @@ def check_libdl(cfg, env):
|
|||
# using loadable modules for a static build is not recommended
|
||||
cfg.msg("libdl disabled for static build", 'disabled', color='YELLOW')
|
||||
return False
|
||||
ret = cfg.check(compiler='cxx', lib='dl', mandatory=False)
|
||||
ret = cfg.check(compiler='cxx', lib='dl', mandatory=False, global_define=True, define_name='HAVE_LIBDL')
|
||||
if ret:
|
||||
env.LIB += cfg.env['LIB_DL']
|
||||
cfg.define('HAVE_LIBDL', 1)
|
||||
return ret
|
||||
|
|
Loading…
Reference in New Issue