summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-12-03 22:40:26 +0100
committerYang Tse <yangsita@gmail.com>2012-12-03 22:41:18 +0100
commit068f7ae2645844ce76b73702bd275f2073f3919c (patch)
treee058bde364ccad867e1c413d0a101023c28a2455 /acinclude.m4
parent68d2830ee9df50961e481e81c1baaa290c33f03e (diff)
downloadcurl-068f7ae2645844ce76b73702bd275f2073f3919c.tar.gz
build: prevent global LIBS from influencing src and lib build targets
Currently, LIBS is already used through other macros.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m45
1 files changed, 1 insertions, 4 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 4921bd210..6596be710 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -130,7 +130,7 @@ int main (void)
]])
],[
tst_lib_xnet_required="yes"
- LIBS="$LIBS -lxnet"
+ LIBS="-lxnet $LIBS"
])
AC_MSG_RESULT([$tst_lib_xnet_required])
])
@@ -2103,7 +2103,6 @@ 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
@@ -2155,7 +2154,6 @@ 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"
;;
@@ -2197,7 +2195,6 @@ 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
#