On Sat, Sep 11, 2010 at 09:49:54AM +0200, Kamil Dudka wrote:
> It solves the problem with linking the curl tool, but you will face basically 
> the same problem while linking certain libcurl test-cases.

I tried building the test cases with just that patch without a problem. Does
this patch solve that problem too?

>>> Dan

diff --git a/acinclude.m4 b/acinclude.m4
index 86f7c7b..225fb9d 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -2145,6 +2145,7 @@ AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [
         else
           LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
         fi
+        CURL_LIBS="$CURL_LIBS $curl_cv_gclk_LIBS"
         AC_MSG_RESULT([$curl_cv_gclk_LIBS])
         ac_cv_func_clock_gettime="yes"
         ;;
diff --git a/tests/libtest/Makefile.am b/tests/libtest/Makefile.am
index 2ba7b0a..9c0d595 100644
--- a/tests/libtest/Makefile.am
+++ b/tests/libtest/Makefile.am
@@ -54,7 +54,7 @@ EXTRA_DIST = test75.pl test307.pl test610.pl test613.pl test1013.pl	\
 test1022.pl Makefile.inc
 
 # Dependencies (may need to be overriden)
-LDADD = $(top_builddir)/lib/libcurl.la
+LDADD = $(top_builddir)/lib/libcurl.la @CURL_LIBS@
 DEPENDENCIES = $(top_builddir)/lib/libcurl.la
 
 # Makefile.inc provides the source defines (TESTUTIL, SUPPORTFILES,
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to