conf.CHECK_CODE('''int main(void) { return 0; }
__attribute__((visibility("default"))) void vis_foo2(void) {}''',
cflags=conf.env.VISIBILITY_CFLAGS,
+ strict=True,
define='HAVE_VISIBILITY_ATTR', addmain=False)
# check HAVE_CONSTRUCTOR_ATTRIBUTE
''',
'HAVE_CONSTRUCTOR_ATTRIBUTE',
addmain=False,
+ strict=True,
msg='Checking for library constructor support')
# check HAVE_DESTRUCTOR_ATTRIBUTE
''',
'HAVE_DESTRUCTOR_ATTRIBUTE',
addmain=False,
+ strict=True,
msg='Checking for library destructor support')
conf.CHECK_CODE('''
''',
'HAVE___ATTRIBUTE__',
addmain=False,
+ strict=True,
msg='Checking for __attribute__')
if sys.platform.startswith('aix'):