1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-21 01:59:07 +03:00

wafsamba: Be strict when checking __attribute__ features

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13493

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit a9775c2429554e029164ad9b98dc8c8c749c50fe)
This commit is contained in:
Amitay Isaacs 2018-07-03 14:34:29 +10:00 committed by Karolin Seeger
parent 89de78eedf
commit 7a0807d68b

View File

@ -374,6 +374,7 @@ def configure(conf):
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
@ -391,6 +392,7 @@ def configure(conf):
''',
'HAVE_CONSTRUCTOR_ATTRIBUTE',
addmain=False,
strict=True,
msg='Checking for library constructor support')
# check HAVE_DESTRUCTOR_ATTRIBUTE
@ -408,6 +410,7 @@ def configure(conf):
''',
'HAVE_DESTRUCTOR_ATTRIBUTE',
addmain=False,
strict=True,
msg='Checking for library destructor support')
conf.CHECK_CODE('''
@ -424,6 +427,7 @@ def configure(conf):
''',
'HAVE___ATTRIBUTE__',
addmain=False,
strict=True,
msg='Checking for __attribute__')
if sys.platform.startswith('aix'):