Link libmemcached.so with SASL libs if we build with SASL support
authorTrond Norbye <trond.norbye@gmail.com>
Tue, 22 Feb 2011 13:52:54 +0000 (14:52 +0100)
committerTrond Norbye <trond.norbye@gmail.com>
Tue, 22 Feb 2011 13:52:54 +0000 (14:52 +0100)
This allows people to use libmemcached from their application without
SASL support without having to link with the sasl libraries themselves

Patch supplied by Remi Collet <Fedora@FamilleCollet.com>

libmemcached/include.am
support/libmemcached.pc.in

index e318f7edfd6eb16f37753f017d4b3998f72a1af2..7d4841f8fb03a8273727b5eb97a4158ae863bb48 100644 (file)
@@ -149,7 +149,7 @@ libmemcached_libmemcachedprotocol_la_DEPENDENCIES=libmemcached/libbyteorder.la
 endif
 
 if HAVE_SASL
-libmemcached_libmemcached_la_LDFLAGS+= $(LIBSASL)
+libmemcached_libmemcached_la_LDFLAGS+= $(LTLIBSASL) $(LTLIBSASL2)
 libmemcached_libmemcached_la_SOURCES += libmemcached/sasl.c
 endif
 
index 5c787ded32e6a28b5a0a3157f866dc9844f6d41d..09741f485dc56e52e5fd481878c1fa4e9ce3310a 100644 (file)
@@ -6,5 +6,5 @@ includedir=@includedir@
 Name: libmemcached
 Description: libmemcached C library.
 Version: @VERSION@
-Libs: -L${libdir} -lmemcached
+Libs: @LTLIBSASL@ @LTLIBSASL2@ -L${libdir} -lmemcached
 Cflags: -I${includedir}