mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
third_party/*_wrapper: use SAMBA_LIBRARY(force_unversioned=True)
This prevents --private-libraries=ALL from creating unuseable wrapper libraries, as they can't work with symbol versioning. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15545 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Björn Jacke <bjacke@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
533e5daf77
commit
a80614fe30
3
third_party/nss_wrapper/wscript
vendored
3
third_party/nss_wrapper/wscript
vendored
@ -87,10 +87,11 @@ def configure(conf):
|
||||
def build(bld):
|
||||
if bld.CONFIG_SET("HAVE_NSS_H") and not bld.CONFIG_SET("USING_SYSTEM_NSS_WRAPPER"):
|
||||
# We need to do it this way or the library wont work.
|
||||
# Using private_library=True will add symbol version which
|
||||
# We need force_unversioned=True as symbol versioning
|
||||
# breaks preloading!
|
||||
bld.SAMBA_LIBRARY('nss_wrapper',
|
||||
source='nss_wrapper.c nss_utils.c',
|
||||
deps='dl pthread',
|
||||
install=False,
|
||||
force_unversioned=True,
|
||||
realname='libnss-wrapper.so')
|
||||
|
4
third_party/pam_wrapper/wscript
vendored
4
third_party/pam_wrapper/wscript
vendored
@ -87,12 +87,13 @@ def configure(conf):
|
||||
def build(bld):
|
||||
if not bld.CONFIG_SET("USING_SYSTEM_PAM_WRAPPER"):
|
||||
# We need to do it this way or the library wont work.
|
||||
# Using private_library=True will add symbol version which
|
||||
# We need force_unversioned=True as symbol versioning
|
||||
# breaks preloading!
|
||||
bld.SAMBA_LIBRARY('pam_wrapper',
|
||||
source='pam_wrapper.c',
|
||||
deps='dl pthread',
|
||||
install=False,
|
||||
force_unversioned=True,
|
||||
realname='libpam-wrapper.so')
|
||||
|
||||
bld.SAMBA_SUBSYSTEM('libpamtest',
|
||||
@ -103,6 +104,7 @@ def build(bld):
|
||||
source='modules/pam_set_items.c',
|
||||
deps='pam',
|
||||
install=False,
|
||||
force_unversioned=True,
|
||||
realname='pam_set_items.so')
|
||||
|
||||
pypamtest_cflags = ''
|
||||
|
3
third_party/resolv_wrapper/wscript
vendored
3
third_party/resolv_wrapper/wscript
vendored
@ -85,10 +85,11 @@ def configure(conf):
|
||||
def build(bld):
|
||||
if bld.CONFIG_SET("HAVE_RESOLV_H") and not bld.CONFIG_SET("USING_SYSTEM_RESOLV_WRAPPER"):
|
||||
# We need to do it this way or the library wont work.
|
||||
# Using private_library=True will add symbol version which
|
||||
# We need force_unversioned=True as symbol versioning
|
||||
# breaks preloading!
|
||||
bld.SAMBA_LIBRARY('resolv_wrapper',
|
||||
source='resolv_wrapper.c',
|
||||
deps='dl resolv',
|
||||
install=False,
|
||||
force_unversioned=True,
|
||||
realname='libresolv-wrapper.so')
|
||||
|
3
third_party/socket_wrapper/wscript
vendored
3
third_party/socket_wrapper/wscript
vendored
@ -110,7 +110,7 @@ def configure(conf):
|
||||
def build(bld):
|
||||
if not bld.CONFIG_SET("USING_SYSTEM_SOCKET_WRAPPER"):
|
||||
# We need to do it this way or the library wont work.
|
||||
# Using private_library=True will add symbol version which
|
||||
# We need force_unversioned=True as symbol versioning
|
||||
# breaks preloading!
|
||||
bld.SAMBA_LIBRARY('socket_wrapper',
|
||||
source='socket_wrapper.c',
|
||||
@ -121,4 +121,5 @@ def build(bld):
|
||||
VERSION),
|
||||
deps='dl pthread tirpc',
|
||||
install=False,
|
||||
force_unversioned=True,
|
||||
realname='libsocket-wrapper.so')
|
||||
|
3
third_party/uid_wrapper/wscript
vendored
3
third_party/uid_wrapper/wscript
vendored
@ -115,10 +115,11 @@ syscall(SYS_setgroups32, 0, NULL);
|
||||
def build(bld):
|
||||
if not bld.CONFIG_SET("USING_SYSTEM_UID_WRAPPER"):
|
||||
# We need to do it this way or the library wont work.
|
||||
# Using private_library=True will add symbol version which
|
||||
# We need force_unversioned=True as symbol versioning
|
||||
# breaks preloading!
|
||||
bld.SAMBA_LIBRARY('uid_wrapper',
|
||||
source='uid_wrapper.c',
|
||||
deps='dl pthread',
|
||||
install=False,
|
||||
force_unversioned=True,
|
||||
realname='libuid-wrapper.so')
|
||||
|
Loading…
Reference in New Issue
Block a user