summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-11-28 18:31:23 +0100
committerYang Tse <yangsita@gmail.com>2012-11-28 18:31:23 +0100
commit16a8281f716234b86daf1737f9ab3fab66043e82 (patch)
tree635d60c62d8c0391988a96035258ee9ae36e2dbd /acinclude.m4
parent534d2ca1d7099f68b28a4d92b44ed62fdba3f5b7 (diff)
downloadcurl-16a8281f716234b86daf1737f9ab3fab66043e82.tar.gz
build: avoid linkage of directly unused libraries
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index ae9d8cdda..4921bd210 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -2103,6 +2103,7 @@ AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [
#
curl_cv_save_LIBS="$LIBS"
curl_cv_gclk_LIBS="unknown"
+ curl_cv_save_CURL_LIBS="$CURL_LIBS"
#
for x_xlibs in '' '-lrt' '-lposix4' ; do
if test "$curl_cv_gclk_LIBS" = "unknown"; then
@@ -2196,6 +2197,7 @@ AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [
AC_MSG_WARN([HAVE_CLOCK_GETTIME_MONOTONIC will not be defined])
ac_cv_func_clock_gettime="no"
LIBS="$curl_cv_save_LIBS"
+ CURL_LIBS="$curl_cv_save_CURL_LIBS"
])
fi
#