OCaml 4.13.1 rebuild, fixes FS#72998
[arch-packages.git] / libsasl / trunk / 0010-Update-required-libraries-when-ld-as-needed-is-used.patch
blobd1457ee691cf51656d983fb0cb6c2b4c6f24b3f1
1 From: Debian Cyrus SASL Team
2 <pkg-cyrus-sasl2-debian-devel@lists.alioth.debian.org>
3 Date: Thu, 24 Mar 2016 11:35:04 +0100
4 Subject: Update required libraries when ld --as-needed is used
6 it.
7 ---
8 saslauthd/Makefile.am | 2 +-
9 sasldb/Makefile.am | 4 ++--
10 2 files changed, 3 insertions(+), 3 deletions(-)
12 diff --git a/saslauthd/Makefile.am b/saslauthd/Makefile.am
13 index 864b29b..4cf3a3d 100644
14 --- a/saslauthd/Makefile.am
15 +++ b/saslauthd/Makefile.am
16 @@ -25,7 +25,7 @@ EXTRA_saslauthd_sources = getaddrinfo.c getnameinfo.c
17 saslauthd_DEPENDENCIES = saslauthd-main.o $(LTLIBOBJS_FULL)
18 saslauthd_LDADD = @SASL_KRB_LIB@ \
19 @GSSAPIBASE_LIBS@ @LIB_CRYPT@ @LIB_SIA@ \
20 - @LIB_SOCKET@ @SASL_DB_LIB@ @LIB_PAM@ @LDAP_LIBS@ $(LTLIBOBJS_FULL) $(CRYPTO_COMPAT_OBJS) $(LIBSASLDB_OBJS)
21 + @LIB_SOCKET@ ../sasldb/libsasldb.la @LIB_PAM@ @LDAP_LIBS@ $(LTLIBOBJS_FULL) $(CRYPTO_COMPAT_OBJS) $(LIBSASLDB_OBJS)
23 testsaslauthd_SOURCES = testsaslauthd.c utils.c
24 testsaslauthd_LDADD = @LIB_SOCKET@
25 diff --git a/sasldb/Makefile.am b/sasldb/Makefile.am
26 index 497ee25..a27645f 100644
27 --- a/sasldb/Makefile.am
28 +++ b/sasldb/Makefile.am
29 @@ -54,6 +54,6 @@ noinst_LTLIBRARIES = libsasldb.la
31 libsasldb_la_SOURCES = allockey.c sasldb.h
32 EXTRA_libsasldb_la_SOURCES = $(extra_common_sources)
33 -libsasldb_la_DEPENDENCIES = $(SASL_DB_BACKEND)
34 -libsasldb_la_LIBADD = $(SASL_DB_BACKEND)
35 +libsasldb_la_DEPENDENCIES = $(SASL_DB_BACKEND) $(SASL_DB_LIB)
36 +libsasldb_la_LIBADD = $(SASL_DB_BACKEND) $(SASL_DB_LIB)
37 libsasldb_la_LDFLAGS = -no-undefined