aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
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 /src/Makefile.am
parent68d2830ee9df50961e481e81c1baaa290c33f03e (diff)
build: prevent global LIBS from influencing src and lib build targets
Currently, LIBS is already used through other macros.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index b53127d27..7839904d5 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -54,7 +54,15 @@ include Makefile.inc
# This might hold -Werror
CFLAGS += @CURL_CFLAG_EXTRAS@ @LIBMETALINK_CFLAGS@
-curl_LDADD = $(top_builddir)/lib/libcurl.la @CURL_LIBS@ @LIBMETALINK_LIBS@
+# Prevent global LIBS from influencing src build targets
+LIBS = $(BLANK_AT_MAKETIME)
+
+if USE_EXPLICIT_LIB_DEPS
+curl_LDADD = $(top_builddir)/lib/libcurl.la @LIBMETALINK_LIBS@ @LIBCURL_LIBS@
+else
+curl_LDADD = $(top_builddir)/lib/libcurl.la @LIBMETALINK_LIBS@ @ZLIB_LIBS@ @CURL_NETWORK_AND_TIME_LIBS@
+endif
+
curl_LDFLAGS = @LIBMETALINK_LDFLAGS@
curl_DEPENDENCIES = $(top_builddir)/lib/libcurl.la
BUILT_SOURCES = hugehelp.c