aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-11-17 10:22:44 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-11-17 10:22:44 +0000
commitbff962398d0f572b4ea689053e020080565944d5 (patch)
tree3b799b6dc60b90d59f58b4875b0cc622a9fc97fa /docs/examples
parent2b15823dab89d504eee57bf91f3757a90ab3497b (diff)
Andres Garcia made the examples build fine on Windows (mingw + msys) when
the lib was built staticly.
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/Makefile.am8
1 files changed, 7 insertions, 1 deletions
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