diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-02-23 23:35:23 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-02-24 00:59:25 +0100 |
commit | d39b9780b21451bf884047c366a4fa1c9c970a9d (patch) | |
tree | 698eb7e5029ab67e0a7711e584c94164e8da04bf | |
parent | a1d78ffc8d568c85d1088e05c585dc211f7ca05b (diff) | |
download | curl-d39b9780b21451bf884047c366a4fa1c9c970a9d.tar.gz |
build: make sure CFLAGS (including -werror) be used for examples and tests
... so that the CI and more detects compiler warnings/errors properly!
-rw-r--r-- | docs/examples/Makefile.am | 5 | ||||
-rw-r--r-- | tests/libtest/Makefile.am | 4 | ||||
-rw-r--r-- | tests/unit/Makefile.am | 4 |
3 files changed, 10 insertions, 3 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 diff --git a/tests/libtest/Makefile.am b/tests/libtest/Makefile.am index a4e85ef0c..0b8ebe9a9 100644 --- a/tests/libtest/Makefile.am +++ b/tests/libtest/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 @@ -49,6 +49,8 @@ test1022.pl Makefile.inc notexists.pl CMakeLists.txt mk-lib1521.pl CFLAG_CURL_SYMBOL_HIDING = @CFLAG_CURL_SYMBOL_HIDING@ +CFLAGS += @CURL_CFLAG_EXTRAS@ + # Prevent LIBS from being used for all link targets LIBS = $(BLANK_AT_MAKETIME) diff --git a/tests/unit/Makefile.am b/tests/unit/Makefile.am index 61b72c0db..fab82d2b0 100644 --- a/tests/unit/Makefile.am +++ b/tests/unit/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 @@ -50,6 +50,8 @@ endif EXTRA_DIST = Makefile.inc CMakeLists.txt +CFLAGS += @CURL_CFLAG_EXTRAS@ + # Prevent LIBS from being used for all link targets LIBS = $(BLANK_AT_MAKETIME) |