From bff962398d0f572b4ea689053e020080565944d5 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 17 Nov 2007 10:22:44 +0000 Subject: Andres Garcia made the examples build fine on Windows (mingw + msys) when the lib was built staticly. --- docs/examples/Makefile.am | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'docs/examples') diff --git a/docs/examples/Makefile.am b/docs/examples/Makefile.am index 9127c3d5a..73383131e 100644 --- a/docs/examples/Makefile.am +++ b/docs/examples/Makefile.am @@ -9,7 +9,13 @@ EXTRA_DIST = README Makefile.example makefile.dj $(COMPLICATED_EXAMPLES) INCLUDES = -I$(top_srcdir)/include LIBDIR = $(top_builddir)/lib -CPPFLAGS = -DCURL_NO_OLDIES + +if STATICLIB +# we need this define when building with a static lib on Windows +STATICCPPFLAGS = -DCURL_STATICLIB +endif + +CPPFLAGS = -DCURL_NO_OLDIES $(STATICCPPFLAGS) # Dependencies LDADD = $(LIBDIR)/libcurl.la -- cgit v1.2.3