aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-11-30 19:12:18 +0100
committerYang Tse <yangsita@gmail.com>2012-11-30 19:12:18 +0100
commit6bd6b3a8a17e2f2004e276c7568feaa01acebfe7 (patch)
tree37ed9338d62f8ce34be17b722f8074866c7131e4
parent91b57cd6e560ab2b38169465b42741135c44f382 (diff)
build: prevent global LIBS from influencing examples build targets
-rw-r--r--docs/examples/Makefile.am13
1 files changed, 11 insertions, 2 deletions
diff --git a/docs/examples/Makefile.am b/docs/examples/Makefile.am
index eb4e7c767..49c20361f 100644
--- a/docs/examples/Makefile.am
+++ b/docs/examples/Makefile.am
@@ -36,18 +36,27 @@ EXTRA_DIST = README Makefile.example Makefile.inc Makefile.m32 \
AM_CPPFLAGS = -I$(top_builddir)/include/curl \
-I$(top_builddir)/include \
- -I$(top_srcdir)/include \
- -DCURL_NO_OLDIES
+ -I$(top_srcdir)/include
LIBDIR = $(top_builddir)/lib
+# Avoid libcurl obsolete stuff
+AM_CPPFLAGS += -DCURL_NO_OLDIES
+
# Mostly for Windows build targets, when using static libcurl
if USE_CPPFLAG_CURL_STATICLIB
AM_CPPFLAGS += -DCURL_STATICLIB
endif
+# Prevent global LIBS from influencing examples build targets
+LIBS = $(BLANK_AT_MAKETIME)
+
# Dependencies
+if USE_EXPLICIT_LIB_DEPS
+LDADD = $(LIBDIR)/libcurl.la @LIBCURL_LIBS@
+else
LDADD = $(LIBDIR)/libcurl.la
+endif
# Makefile.inc provides the check_PROGRAMS and COMPLICATED_EXAMPLES defines
include Makefile.inc