mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18: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):
|
def build(bld):
|
||||||
if bld.CONFIG_SET("HAVE_NSS_H") and not bld.CONFIG_SET("USING_SYSTEM_NSS_WRAPPER"):
|
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.
|
# 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!
|
# breaks preloading!
|
||||||
bld.SAMBA_LIBRARY('nss_wrapper',
|
bld.SAMBA_LIBRARY('nss_wrapper',
|
||||||
source='nss_wrapper.c nss_utils.c',
|
source='nss_wrapper.c nss_utils.c',
|
||||||
deps='dl pthread',
|
deps='dl pthread',
|
||||||
install=False,
|
install=False,
|
||||||
|
force_unversioned=True,
|
||||||
realname='libnss-wrapper.so')
|
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):
|
def build(bld):
|
||||||
if not bld.CONFIG_SET("USING_SYSTEM_PAM_WRAPPER"):
|
if not bld.CONFIG_SET("USING_SYSTEM_PAM_WRAPPER"):
|
||||||
# We need to do it this way or the library wont work.
|
# 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!
|
# breaks preloading!
|
||||||
bld.SAMBA_LIBRARY('pam_wrapper',
|
bld.SAMBA_LIBRARY('pam_wrapper',
|
||||||
source='pam_wrapper.c',
|
source='pam_wrapper.c',
|
||||||
deps='dl pthread',
|
deps='dl pthread',
|
||||||
install=False,
|
install=False,
|
||||||
|
force_unversioned=True,
|
||||||
realname='libpam-wrapper.so')
|
realname='libpam-wrapper.so')
|
||||||
|
|
||||||
bld.SAMBA_SUBSYSTEM('libpamtest',
|
bld.SAMBA_SUBSYSTEM('libpamtest',
|
||||||
@ -103,6 +104,7 @@ def build(bld):
|
|||||||
source='modules/pam_set_items.c',
|
source='modules/pam_set_items.c',
|
||||||
deps='pam',
|
deps='pam',
|
||||||
install=False,
|
install=False,
|
||||||
|
force_unversioned=True,
|
||||||
realname='pam_set_items.so')
|
realname='pam_set_items.so')
|
||||||
|
|
||||||
pypamtest_cflags = ''
|
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):
|
def build(bld):
|
||||||
if bld.CONFIG_SET("HAVE_RESOLV_H") and not bld.CONFIG_SET("USING_SYSTEM_RESOLV_WRAPPER"):
|
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.
|
# 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!
|
# breaks preloading!
|
||||||
bld.SAMBA_LIBRARY('resolv_wrapper',
|
bld.SAMBA_LIBRARY('resolv_wrapper',
|
||||||
source='resolv_wrapper.c',
|
source='resolv_wrapper.c',
|
||||||
deps='dl resolv',
|
deps='dl resolv',
|
||||||
install=False,
|
install=False,
|
||||||
|
force_unversioned=True,
|
||||||
realname='libresolv-wrapper.so')
|
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):
|
def build(bld):
|
||||||
if not bld.CONFIG_SET("USING_SYSTEM_SOCKET_WRAPPER"):
|
if not bld.CONFIG_SET("USING_SYSTEM_SOCKET_WRAPPER"):
|
||||||
# We need to do it this way or the library wont work.
|
# 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!
|
# breaks preloading!
|
||||||
bld.SAMBA_LIBRARY('socket_wrapper',
|
bld.SAMBA_LIBRARY('socket_wrapper',
|
||||||
source='socket_wrapper.c',
|
source='socket_wrapper.c',
|
||||||
@ -121,4 +121,5 @@ def build(bld):
|
|||||||
VERSION),
|
VERSION),
|
||||||
deps='dl pthread tirpc',
|
deps='dl pthread tirpc',
|
||||||
install=False,
|
install=False,
|
||||||
|
force_unversioned=True,
|
||||||
realname='libsocket-wrapper.so')
|
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):
|
def build(bld):
|
||||||
if not bld.CONFIG_SET("USING_SYSTEM_UID_WRAPPER"):
|
if not bld.CONFIG_SET("USING_SYSTEM_UID_WRAPPER"):
|
||||||
# We need to do it this way or the library wont work.
|
# 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!
|
# breaks preloading!
|
||||||
bld.SAMBA_LIBRARY('uid_wrapper',
|
bld.SAMBA_LIBRARY('uid_wrapper',
|
||||||
source='uid_wrapper.c',
|
source='uid_wrapper.c',
|
||||||
deps='dl pthread',
|
deps='dl pthread',
|
||||||
install=False,
|
install=False,
|
||||||
|
force_unversioned=True,
|
||||||
realname='libuid-wrapper.so')
|
realname='libuid-wrapper.so')
|
||||||
|
Loading…
Reference in New Issue
Block a user