summaryrefslogtreecommitdiffstats
path: root/lib/uid_wrapper/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'lib/uid_wrapper/wscript')
-rw-r--r--lib/uid_wrapper/wscript17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/uid_wrapper/wscript b/lib/uid_wrapper/wscript
index 6b585956e0..bd797e5a72 100644
--- a/lib/uid_wrapper/wscript
+++ b/lib/uid_wrapper/wscript
@@ -21,6 +21,23 @@ def configure(conf):
addmain=False,
msg='Checking for thread local storage')
+ # check HAVE_CONSTRUCTOR_ATTRIBUTE
+ conf.CHECK_CODE('''
+ void test_constructor_attribute(void) __attribute__ ((constructor));
+
+ void test_constructor_attribute(void)
+ {
+ return;
+ }
+
+ int main(void) {
+ return 0;
+ }
+ ''',
+ 'HAVE_CONSTRUCTOR_ATTRIBUTE',
+ addmain=False,
+ msg='Checking for library constructor support')
+
# check HAVE_DESTRUCTOR_ATTRIBUTE
conf.CHECK_CODE('''
void test_destructor_attribute(void) __attribute__ ((destructor));