summaryrefslogtreecommitdiff
path: root/docs/examples/Makefile.am
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-02-23 23:35:23 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-03-04 19:46:26 +0100
commit8b0b1a30881590e70082784e16f3c2c66d88b218 (patch)
treece286b6ee193d73373f95d92fd5230fb788529e0 /docs/examples/Makefile.am
parent68d84cfe984e7d0483fad14fdd7deef4bf67de1b (diff)
downloadcurl-8b0b1a30881590e70082784e16f3c2c66d88b218.tar.gz
build: get CFLAGS (including -werror) used for examples and tests
... so that the CI and more detects compiler warnings/errors properly! Closes #2337
Diffstat (limited to 'docs/examples/Makefile.am')
-rw-r--r--docs/examples/Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/examples/Makefile.am b/docs/examples/Makefile.am
index afd35c20b..e5ed222ef 100644
--- a/docs/examples/Makefile.am
+++ b/docs/examples/Makefile.am
@@ -5,7 +5,7 @@
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
-# Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -53,6 +53,9 @@ else
LDADD = $(LIBDIR)/libcurl.la
endif
+# This might hold -Werror
+CFLAGS += @CURL_CFLAG_EXTRAS@
+
# Makefile.inc provides the check_PROGRAMS and COMPLICATED_EXAMPLES defines
include Makefile.inc