summaryrefslogtreecommitdiffstats
path: root/buildtools
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2015-01-07 09:58:38 +0100
committerJeremy Allison <jra@samba.org>2015-01-08 23:38:07 +0100
commit52eb8854ff8535577c9282f8e4133875fbb0ed33 (patch)
tree21cbdcd0c26c3c20f99e71cb246dc914eb1fa4b9 /buildtools
parent4683fc0f1dc5af3bcf81edaebfbd6c8d3b38df9e (diff)
downloadsamba-52eb8854ff8535577c9282f8e4133875fbb0ed33.tar.gz
samba-52eb8854ff8535577c9282f8e4133875fbb0ed33.tar.xz
samba-52eb8854ff8535577c9282f8e4133875fbb0ed33.zip
wafsamba: let CURRENT_CFLAGS() use bld.env.VISIBILITY_CFLAGS
This is better than a hardcoded value in multiple places. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_autoconf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index ca1eac2ffb..043a9f474a 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -781,7 +781,7 @@ def CURRENT_CFLAGS(bld, target, cflags, allow_warnings=False, hide_symbols=False
list = bld.env['PICKY_CFLAGS'];
ret.extend(list)
if hide_symbols and bld.env.HAVE_VISIBILITY_ATTR:
- ret.append('-fvisibility=hidden')
+ ret.append(bld.env.VISIBILITY_CFLAGS)
return ret