click, brite: avoid defining "DL" as compilation param

This commit is contained in:
Tommaso Pecorella
2021-01-30 20:11:06 +01:00
parent fba9195517
commit cd8414e0e3
2 changed files with 4 additions and 4 deletions

View File

@@ -59,7 +59,7 @@ int main()
}
'''
conf.env['DL'] = conf.check(mandatory=True, lib='dl', define_name='DL', uselib_store='DL')
conf.env['HAVE_DL'] = conf.check(mandatory=True, lib='dl', define_name='HAVE_DL', uselib_store='DL')
conf.env['LIBPATH_BRITE'] = [os.path.abspath(os.path.join(conf.env['WITH_BRITE'], '.'))]
@@ -98,7 +98,7 @@ def build(bld):
# 'test/brite-examples-test-suite.cc',
])
if bld.env['BRITE'] and bld.env['DL']:
if bld.env['BRITE'] and bld.env['HAVE_DL']:
module.use.extend(['BRITE', 'DL'])
module_test.use.extend(['BRITE', 'DL'])

View File

@@ -76,7 +76,7 @@ int main()
return 0;
}
'''
conf.env['DL'] = conf.check(mandatory=True, lib='dl', define_name='DL', uselib_store='DL')
conf.env['HAVE_DL'] = conf.check(mandatory=True, lib='dl', define_name='HAVE_DL', uselib_store='DL')
for tmp in ['lib', 'ns']:
libdir = os.path.abspath(os.path.join(conf.env['WITH_NSCLICK'],tmp))
@@ -119,7 +119,7 @@ def build(bld):
# 'test/click-examples-test-suite.cc',
])
if bld.env['NSCLICK'] and bld.env['DL']:
if bld.env['NSCLICK'] and bld.env['HAVE_DL']:
module.use.extend(['NSCLICK', 'DL'])
module_test.use.extend(['NSCLICK', 'DL'])