mirror of
https://github.com/moparisthebest/curl
synced 2024-11-11 12:05:06 -05:00
build: prevent global LIBS from influencing examples build targets
This commit is contained in:
parent
91b57cd6e5
commit
6bd6b3a8a1
@ -36,18 +36,27 @@ EXTRA_DIST = README Makefile.example Makefile.inc Makefile.m32 \
|
|||||||
|
|
||||||
AM_CPPFLAGS = -I$(top_builddir)/include/curl \
|
AM_CPPFLAGS = -I$(top_builddir)/include/curl \
|
||||||
-I$(top_builddir)/include \
|
-I$(top_builddir)/include \
|
||||||
-I$(top_srcdir)/include \
|
-I$(top_srcdir)/include
|
||||||
-DCURL_NO_OLDIES
|
|
||||||
|
|
||||||
LIBDIR = $(top_builddir)/lib
|
LIBDIR = $(top_builddir)/lib
|
||||||
|
|
||||||
|
# Avoid libcurl obsolete stuff
|
||||||
|
AM_CPPFLAGS += -DCURL_NO_OLDIES
|
||||||
|
|
||||||
# Mostly for Windows build targets, when using static libcurl
|
# Mostly for Windows build targets, when using static libcurl
|
||||||
if USE_CPPFLAG_CURL_STATICLIB
|
if USE_CPPFLAG_CURL_STATICLIB
|
||||||
AM_CPPFLAGS += -DCURL_STATICLIB
|
AM_CPPFLAGS += -DCURL_STATICLIB
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Prevent global LIBS from influencing examples build targets
|
||||||
|
LIBS = $(BLANK_AT_MAKETIME)
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
if USE_EXPLICIT_LIB_DEPS
|
||||||
|
LDADD = $(LIBDIR)/libcurl.la @LIBCURL_LIBS@
|
||||||
|
else
|
||||||
LDADD = $(LIBDIR)/libcurl.la
|
LDADD = $(LIBDIR)/libcurl.la
|
||||||
|
endif
|
||||||
|
|
||||||
# Makefile.inc provides the check_PROGRAMS and COMPLICATED_EXAMPLES defines
|
# Makefile.inc provides the check_PROGRAMS and COMPLICATED_EXAMPLES defines
|
||||||
include Makefile.inc
|
include Makefile.inc
|
||||||
|
Loading…
Reference in New Issue
Block a user