From d3dea9b1248edf9a3e96e88bea8de3e098fbc2fe Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 18 Apr 2010 12:43:15 +1000 Subject: build: added ABI checking to the WAF build See http://wiki.samba.org/index.php/Waf#ABI_Checking for details --- buildtools/wafsamba/samba_autoconf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'buildtools/wafsamba/samba_autoconf.py') diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index dca6595964..dd7abe2864 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -604,7 +604,7 @@ def ADD_EXTRA_INCLUDES(conf, includes): -def CURRENT_CFLAGS(bld, target, cflags): +def CURRENT_CFLAGS(bld, target, cflags, hide_symbols=False): '''work out the current flags. local flags are added first''' if not 'EXTRA_CFLAGS' in bld.env: list = [] @@ -612,6 +612,8 @@ def CURRENT_CFLAGS(bld, target, cflags): list = bld.env['EXTRA_CFLAGS']; ret = TO_LIST(cflags) ret.extend(list) + if hide_symbols and bld.env.HAVE_VISIBILITY_ATTR: + ret.append('-fvisibility=hidden') return ret -- cgit