]> git.ipfire.org Git - thirdparty/openvpn.git/commit
travis: fix CFLAGS assignment error and add -Werror only when compiling on Linux...
authorAntonio Quartulli <a@unstable.cc>
Sun, 10 Nov 2019 20:17:18 +0000 (21:17 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 27 Nov 2019 19:58:47 +0000 (20:58 +0100)
commite0fbb584b8c4acba15feed7e30a778dde6389677
tree6e734b1e1835a045b9da7eb1e498249dcdbfdf0f
parentfb8033d49bbfb1b02e75d8d71d0ad891e07a1b06
travis: fix CFLAGS assignment error and add -Werror only when compiling on Linux for Linux

CFLAGS may not resolve to anything and the build-check.sh script would
just fail.

Switch to EXTRA_FLAGS and use proper substitution so that the script won't
error out when EXTRA_FLAGS is uninitialized.

At the same time ensure that such flag is set only when compiling *for*
linux (we use linux to also compile *for* windows)

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20191110201718.31032-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19109.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
.travis/build-check.sh