From: Stefan Metzmacher Date: Wed, 7 Jan 2015 08:58:38 +0000 (+0100) Subject: wafsamba: let CURRENT_CFLAGS() use bld.env.VISIBILITY_CFLAGS X-Git-Tag: samba-4.2.0rc5~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f36016e8102e6b94aeac8b7b267cb445a10d1e74;p=thirdparty%2Fsamba.git wafsamba: let CURRENT_CFLAGS() use bld.env.VISIBILITY_CFLAGS This is better than a hardcoded value in multiple places. Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme (cherry picked from commit 52eb8854ff8535577c9282f8e4133875fbb0ed33) --- diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index 54bb31332c5..dc766736138 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=True, 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