summaryrefslogtreecommitdiff
path: root/third_party/uid_wrapper
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2018-07-18 08:54:22 +0200
committerRalph Boehme <slow@samba.org>2018-07-24 17:38:26 +0200
commit6f8c1b6736875d63c11f8630ecf1c8d3dcd70fc5 (patch)
tree1dac390293cf2842bd204e13caa58345ed783827 /third_party/uid_wrapper
parent2ebb5847defce888c3177d6564a3d7dcc0ed47e4 (diff)
downloadsamba-6f8c1b6736875d63c11f8630ecf1c8d3dcd70fc5.tar.gz
third_party/*_wrapper/wscript: remove redundant configure checks
HAVE___THREAD and HAVE_DESTRUCTOR_ATTRIBUTE are already checked as part of Samba. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'third_party/uid_wrapper')
-rw-r--r--third_party/uid_wrapper/wscript12
1 files changed, 2 insertions, 10 deletions
diff --git a/third_party/uid_wrapper/wscript b/third_party/uid_wrapper/wscript
index 6344ebf5eba..8127a9d9f40 100644
--- a/third_party/uid_wrapper/wscript
+++ b/third_party/uid_wrapper/wscript
@@ -23,17 +23,9 @@ def configure(conf):
addmain=False,
msg='Checking for atomic builtins')
- # check HAVE_GCC_THREAD_LOCAL_STORAGE
- conf.CHECK_CODE('''
- __thread int tls;
- int main(void) {
- return 0;
- }
- ''',
- 'HAVE_GCC_THREAD_LOCAL_STORAGE',
- addmain=False,
- msg='Checking for thread local storage')
+ if conf.CONFIG_SET("HAVE___THREAD"):
+ conf.DEFINE("HAVE_GCC_THREAD_LOCAL_STORAGE", 1)
if Options.options.address_sanitizer:
# check HAVE_ADDRESS_SANITIZER_ATTRIBUTE