1From 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 6Description: 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. 11 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 18--- a/lib/Makefile.am 19+++ b/lib/Makefile.am 20@@ -99,7 +99,7 @@ endif 21 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) 26 @for i in ./libsasl2.la ../common/libplugin_common.la ../sasldb/libsasldb.la ../plugins/lib*.la; do \ 27 if test ! -f $$i; then continue; fi; . $$i; \ 28 for j in $$dependency_libs foo; do \ 29