]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
wafsamba: let CURRENT_CFLAGS() use bld.env.VISIBILITY_CFLAGS
authorStefan Metzmacher <metze@samba.org>
Wed, 7 Jan 2015 08:58:38 +0000 (09:58 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 27 Jan 2015 10:02:15 +0000 (11:02 +0100)
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>
(cherry picked from commit 52eb8854ff8535577c9282f8e4133875fbb0ed33)

buildtools/wafsamba/samba_autoconf.py

index 54bb31332c554f2f2462e9a30392e60d9bc6cd42..dc76673613884095fd5fae031c5cf12e3d8851d4 100644 (file)
@@ -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