Fixed building of dlls on win32
authorTrond Norbye <trond.norbye@gmail.com>
Wed, 28 Jul 2010 17:42:50 +0000 (19:42 +0200)
committerTrond Norbye <trond.norbye@gmail.com>
Wed, 28 Jul 2010 17:42:50 +0000 (19:42 +0200)
configure.ac
libmemcached/include.am
win32/include.am

index 4be37b7d0cdf0d606a1b465eaf3e3a3ad01d6a3c..d3a4a349bfbbd1f37eb90310e7cb1dfebd854258 100644 (file)
@@ -90,7 +90,10 @@ AC_CHECK_FUNCS([getline])
 
 PANDORA_HAVE_LIBGTEST
 PANDORA_HAVE_LIBEVENT
+my_saved_libs="$LIBS"
+LIBS=
 PANDORA_REQUIRE_PTHREAD
+LIBS="$my_saved_libs"
 PANDORA_CXX_DEMANGLE
 
 dnl Specialty checks
index 4d705fd070bd523037b66094fdd491638cb729ba..fccced999dcdbdd90751c5516c1c6399618f5cd5 100644 (file)
@@ -66,7 +66,8 @@ libmemcached_libmemcachedprotocol_la_SOURCES =  \
                                                libmemcached/protocol/pedantic.c \
                                                libmemcached/protocol/protocol_handler.c
 
-libmemcached_libmemcachedprotocol_la_LDFLAGS= ${AM_LDFLAGS} ${PTHREAD} -version-info ${MEMCACHED_PROTOCAL_LIBRARY_VERSION}
+libmemcached_libmemcachedprotocol_la_CFLAGS= ${AM_CFLAGS} ${NO_CONVERSION} ${PTHREAD_CFLAGS}
+libmemcached_libmemcachedprotocol_la_LDFLAGS= ${AM_LDFLAGS} ${PTHREAD_LIBS} -version-info ${MEMCACHED_PROTOCAL_LIBRARY_VERSION}
 
 noinst_LTLIBRARIES+= \
                     libmemcached/libmemcachedcallbacks.la
@@ -133,8 +134,9 @@ libmemcached_libmemcachedutil_la_SOURCES= \
                                          libmemcached/util/ping.c \
                                          libmemcached/util/pool.c \
                                          libmemcached/util/version.c
+libmemcached_libmemcachedutil_la_CFLAGS= ${AM_CFLAGS} ${NO_CONVERSION} ${PTHREAD_CFLAGS}
 libmemcached_libmemcachedutil_la_LIBADD= libmemcached/libmemcached.la
-libmemcached_libmemcachedutil_la_LDFLAGS= ${AM_LDFLAGS} ${LIBPTHREAD} -version-info ${MEMCACHED_UTIL_LIBRARY_VERSION}
+libmemcached_libmemcachedutil_la_LDFLAGS= ${AM_LDFLAGS} ${PTHREAD_LIBS} -version-info ${MEMCACHED_UTIL_LIBRARY_VERSION}
 libmemcached_libmemcachedutil_la_DEPENDENCIES= libmemcached/libmemcached.la
 
 if BUILD_BYTEORDER
index 751a37191c5190c79cb1cace2661d937bd1bb697..f81ae3e3ffbc058f149e07c5508472d9e1795565 100644 (file)
@@ -2,3 +2,10 @@
 # included from Top Level Makefile.am
 # All paths should be given relative to the root
 noinst_HEADERS+= win32/wrappers.h
+
+if BUILD_WIN32_WRAPPERS
+libmemcached_libmemcached_la_LDFLAGS+=-no-undefined
+libmemcached_libmemcachedprotocol_la_LDFLAGS+=-no-undefined
+libmemcached_libmemcachedutil_la_LDFLAGS+=-no-undefined
+libhashkit_libhashkit_la_LDFLAGS+=-no-undefined
+endif