aboutsummaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2010-09-11 17:04:05 -0700
committerDan Fandrich <dan@coneharvesters.com>2010-09-11 17:08:23 -0700
commit8e2f16e66f507ffd7a61b41e3052527b91883182 (patch)
treebf7b02862c43e1d1a1af7cfbe30d85d4c3e57c1d /acinclude.m4
parenta7f6747019445558075fe9578a18f0eb6577bae7 (diff)
Link curl and the test apps with -lrt explicitly when necessary
When curl calls a function from that library then it needs to explicitly link to the library instead of piggybacking on libcurl's own dependency. Without this, GNU ld with the --no-add-needed flag fails when linking (which Fedora now does by default). Reported by: Quanah Gibson-Mount Bug: http://curl.haxx.se/mail/lib-2010-09/0085.html
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 86f7c7bb8..225fb9d1d 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"
;;