From 07e0de42263978e78c08a2663425f7e6f16f6c7e Mon Sep 17 00:00:00 2001 From: Trond Norbye Date: Tue, 22 Feb 2011 14:52:54 +0100 Subject: [PATCH] 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 --- libmemcached/include.am | 2 +- support/libmemcached.pc.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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} -- 2.30.2