blob: 0479acfb09775a9eadc76891ae149a72cb5a7977 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 1a5f3004e9081eab6263a29cd5be792f06441e36 Mon Sep 17 00:00:00 2001
2From: Fabian Fagerholm <fabbe@debian.org>
3Date: Wed, 24 Jul 2013 11:38:25 -0400
4Subject: [PATCH] cyrus-sasl: Add patches from Debian to fix linking
5
Patrick Williamsb48b7b42016-08-17 15:04:38 -05006Description: This patch makes sure the non-PIC version of libsasldb.a, which
7is created out of non-PIC objects, is not going to overwrite the PIC version,
8which is created out of PIC objects. The PIC version is placed in .libs, and
9the non-PIC version in the current directory. This ensures that both non-PIC
10and PIC versions are available in the correct locations.
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080011
12---
13 lib/Makefile.am | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/lib/Makefile.am b/lib/Makefile.am
17index a158ca3..3137e19 100644
Patrick Williamsb48b7b42016-08-17 15:04:38 -050018--- a/lib/Makefile.am
19+++ b/lib/Makefile.am
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080020@@ -99,7 +99,7 @@ endif
Patrick Williamsb48b7b42016-08-17 15:04:38 -050021
22 libsasl2.a: libsasl2.la $(SASL_STATIC_OBJS)
23 @echo adding static plugins and dependencies
24- $(AR) cru .libs/$@ $(SASL_STATIC_OBJS)
25+ $(AR) cru $@ $(SASL_STATIC_OBJS)
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080026 @for i in ./libsasl2.la ../common/libplugin_common.la ../sasldb/libsasldb.la ../plugins/lib*.la; do \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050027 if test ! -f $$i; then continue; fi; . $$i; \
28 for j in $$dependency_libs foo; do \