summaryrefslogtreecommitdiff
path: root/nsswitch/wscript_build
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2021-07-01 12:08:16 +0200
committerStefan Metzmacher <metze@samba.org>2021-11-30 15:53:34 +0000
commit419ca68de0c9ed02612e64717963d133833061e7 (patch)
tree3672bfa078cb8e50b3e44fdfd7524801b357d1f5 /nsswitch/wscript_build
parent3f9948bd6dc16e7cf488277fab6837f545e94432 (diff)
downloadsamba-419ca68de0c9ed02612e64717963d133833061e7.tar.gz
nsswitch: explicitly mark NSS_STATUS _nss_winbind_* symbols as _PUBLIC_ on Linux
The symbols which are used via dlopen()/dlsym() need to be exported, in future we'll do hide all other symbols. On other platforms, which are implemented as wrappers above the Linux implementation, we mark the symbols as _PRIVATE_ BUG: https://bugzilla.samba.org/show_bug.cgi?id=14780 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'nsswitch/wscript_build')
-rw-r--r--nsswitch/wscript_build3
1 files changed, 3 insertions, 0 deletions
diff --git a/nsswitch/wscript_build b/nsswitch/wscript_build
index afd7453670b..867de87ce67 100644
--- a/nsswitch/wscript_build
+++ b/nsswitch/wscript_build
@@ -27,6 +27,7 @@ if bld.CONFIG_SET('HAVE_PTHREAD'):
# The nss_wrapper code relies strictly on the linux implementation and
# name, so compile but do not install a copy under this name.
bld.SAMBA_LIBRARY('nss_wrapper_winbind',
+ cflags='-D_PUBLIC_ON_LINUX_=_PUBLIC_',
source='winbind_nss_linux.c',
deps='winbind-client',
realname='libnss_wrapper_winbind.so.2',
@@ -39,6 +40,7 @@ bld.SAMBA_LIBRARY('nss_wrapper_winbind',
if (Utils.unversioned_sys_platform() == 'linux' or (host_os.rfind('gnu') > -1)):
bld.SAMBA_LIBRARY('nss_winbind',
keep_underscore=True,
+ cflags='-D_PUBLIC_ON_LINUX_=_PUBLIC_',
source='winbind_nss_linux.c',
deps='winbind-client',
public_headers=[],
@@ -48,6 +50,7 @@ if (Utils.unversioned_sys_platform() == 'linux' or (host_os.rfind('gnu') > -1)):
bld.SAMBA3_LIBRARY('nss_wins',
keep_underscore=True,
+ cflags='-D_PUBLIC_ON_LINUX_=_PUBLIC_',
source='wins.c',
deps='wbclient replace',
public_headers=[],