From: Trond Norbye Date: Tue, 22 Feb 2011 13:52:54 +0000 (+0100) Subject: Link libmemcached.so with SASL libs if we build with SASL support X-Git-Tag: 0.51~31^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=07e0de42263978e78c08a2663425f7e6f16f6c7e;p=awesomized%2Flibmemcached Link libmemcached.so with SASL libs if we build with SASL support 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 --- diff --git a/libmemcached/include.am b/libmemcached/include.am index e318f7ed..7d4841f8 100644 --- a/libmemcached/include.am +++ b/libmemcached/include.am @@ -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 diff --git a/support/libmemcached.pc.in b/support/libmemcached.pc.in index 5c787ded..09741f48 100644 --- a/support/libmemcached.pc.in +++ b/support/libmemcached.pc.in @@ -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}