diff options
-rwxr-xr-x | buildtools/wafsamba/wscript | 7 | ||||
-rw-r--r-- | lib/replace/wscript | 7 |
2 files changed, 7 insertions, 7 deletions
diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript index 0e2afe1149..0a1cd1ce3e 100755 --- a/buildtools/wafsamba/wscript +++ b/buildtools/wafsamba/wscript @@ -341,6 +341,13 @@ def configure(conf): else: conf.env.HAVE_LD_VERSION_SCRIPT = False + if conf.CHECK_CFLAGS('-fvisibility=hidden'): + conf.env.VISIBILITY_CFLAGS = '-fvisibility=hidden' + conf.CHECK_CODE('''int main(void) { return 0; } + __attribute__((visibility("default"))) void vis_foo2(void) {}''', + cflags=conf.env.VISIBILITY_CFLAGS, + define='HAVE_VISIBILITY_ATTR', addmain=False) + if sys.platform.startswith('aix'): conf.DEFINE('_ALL_SOURCE', 1, add_to_cflags=True) # Might not be needed if ALL_SOURCE is defined diff --git a/lib/replace/wscript b/lib/replace/wscript index 4693a79c49..4d4d182b6f 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -599,13 +599,6 @@ removeea setea execute=True, mandatory=True) # lets see if we get a mandatory failure for this one - if conf.CHECK_CFLAGS('-fvisibility=hidden'): - conf.env.VISIBILITY_CFLAGS = '-fvisibility=hidden' - conf.CHECK_CODE('''int main(void) { return 0; } - __attribute__((visibility("default"))) void vis_foo2(void) {}''', - cflags=conf.env.VISIBILITY_CFLAGS, - define='HAVE_VISIBILITY_ATTR', addmain=False) - # look for a method of finding the list of network interfaces for method in ['HAVE_IFACE_GETIFADDRS', 'HAVE_IFACE_AIX', 'HAVE_IFACE_IFCONF', 'HAVE_IFACE_IFREQ']: if conf.CHECK_CODE(''' |