waf: use define_name in libdl check

This commit is contained in:
Andrew Tridgell 2016-07-13 14:04:02 +10:00 committed by Lucas De Marchi
parent a5adae5fb4
commit 1b12371e25
1 changed files with 1 additions and 2 deletions

View File

@ -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