mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
r13417: Add .2 to the SONAME as version suffix if we link the nss modules on
linux. Heads up: This might be required on other OS using glibc too. (This used to be commit b28e43427b43994404f109ce7da467461af12200)
This commit is contained in:
parent
45f2e5997b
commit
34352fe039
@ -1178,13 +1178,13 @@ bin/winbindd@EXEEXT@: $(WINBINDD_OBJ) @BUILD_POPT@ bin/.dummy
|
||||
@WINBIND_NSS@: $(WINBIND_NSS_PICOBJS)
|
||||
@echo "Linking $@"
|
||||
@$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_PICOBJS) \
|
||||
@WINBIND_NSS_EXTRA_LIBS@ @SONAMEFLAG@`basename $@`
|
||||
@WINBIND_NSS_EXTRA_LIBS@ @SONAMEFLAG@`basename $@`@SONAMEVERSIONSUFFIX@
|
||||
|
||||
@WINBIND_WINS_NSS@: $(WINBIND_WINS_NSS_PICOBJS)
|
||||
@echo "Linking $@"
|
||||
@$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_PICOBJS) \
|
||||
$(LDAP_LIBS) $(KRB5LIBS) \
|
||||
@SONAMEFLAG@`basename $@`
|
||||
@SONAMEFLAG@`basename $@`@SONAMEVERSIONSUFFIX@
|
||||
|
||||
nsswitch/pam_winbind.@SHLIBEXT@: $(PAM_WINBIND_PICOBJ) bin/.dummy
|
||||
@echo "Linking $@"
|
||||
|
@ -206,6 +206,7 @@ dnl Unique-to-Samba variables we'll be playing with.
|
||||
AC_SUBST(SHELL)
|
||||
AC_SUBST(LDSHFLAGS)
|
||||
AC_SUBST(SONAMEFLAG)
|
||||
AC_SUBST(SONAMEVERSIONSUFFIX)
|
||||
AC_SUBST(SHLD)
|
||||
AC_SUBST(HOST_OS)
|
||||
AC_SUBST(PICFLAGS)
|
||||
@ -1382,6 +1383,7 @@ BLDSHARED="false"
|
||||
HOST_OS="$host_os"
|
||||
LDSHFLAGS="-shared"
|
||||
SONAMEFLAG="#"
|
||||
SONAMEVERSIONSUFFIX=""
|
||||
SHLD="\${CC} \${CFLAGS}"
|
||||
PICFLAGS=""
|
||||
PICSUFFIX="po"
|
||||
@ -1406,6 +1408,7 @@ if test "$enable_shared" = "yes"; then
|
||||
DYNEXP="-Wl,--export-dynamic"
|
||||
PICFLAGS="-fPIC"
|
||||
SONAMEFLAG="-Wl,-soname="
|
||||
SONAMEVERSIONSUFFIX=".2"
|
||||
AC_DEFINE(STAT_ST_BLOCKSIZE,512)
|
||||
;;
|
||||
*solaris*) AC_DEFINE(SUNOS5,1,[Whether the host os is solaris])
|
||||
|
Loading…
x
Reference in New Issue
Block a user