diff options
Diffstat (limited to '.travis/flags.sh')
-rw-r--r-- | .travis/flags.sh | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/.travis/flags.sh b/.travis/flags.sh index a617ec8e..30284d38 100644 --- a/.travis/flags.sh +++ b/.travis/flags.sh | |||
@@ -1,10 +1,13 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/bash |
2 | 2 | ||
3 | add_config_flag() { CONFIG_FLAGS="$CONFIG_FLAGS $@"; } | 3 | add_config_flag() { CONFIG_FLAGS+=("$@"); } |
4 | add_c_flag() { C_FLAGS="$C_FLAGS $@"; } | 4 | add_c_flag() { C_FLAGS="$C_FLAGS $@"; } |
5 | add_cxx_flag() { CXX_FLAGS="$CXX_FLAGS $@"; } | 5 | add_cxx_flag() { CXX_FLAGS="$CXX_FLAGS $@"; } |
6 | add_ld_flag() { LD_FLAGS="$LD_FLAGS $@"; } | 6 | add_ld_flag() { LD_FLAGS="$LD_FLAGS $@"; } |
7 | add_flag() { add_c_flag "$@"; add_cxx_flag "$@"; } | 7 | add_flag() { |
8 | add_c_flag "$@" | ||
9 | add_cxx_flag "$@" | ||
10 | } | ||
8 | 11 | ||
9 | export LD_LIBRARY_PATH="$CACHEDIR/lib" | 12 | export LD_LIBRARY_PATH="$CACHEDIR/lib" |
10 | export PKG_CONFIG_PATH="$CACHEDIR/lib/pkgconfig" | 13 | export PKG_CONFIG_PATH="$CACHEDIR/lib/pkgconfig" |
@@ -13,7 +16,7 @@ export PKG_CONFIG_PATH="$CACHEDIR/lib/pkgconfig" | |||
13 | # and friends here (we unset them below), because they influence config tests | 16 | # and friends here (we unset them below), because they influence config tests |
14 | # such as ./configure and cmake tests. Our warning flags break those tests, so | 17 | # such as ./configure and cmake tests. Our warning flags break those tests, so |
15 | # we can't add them globally here. | 18 | # we can't add them globally here. |
16 | CONFIG_FLAGS="" | 19 | CONFIG_FLAGS=() |
17 | C_FLAGS="" | 20 | C_FLAGS="" |
18 | CXX_FLAGS="" | 21 | CXX_FLAGS="" |
19 | LD_FLAGS="" | 22 | LD_FLAGS="" |