summaryrefslogtreecommitdiff
path: root/.travis/flags.sh
diff options
context:
space:
mode:
Diffstat (limited to '.travis/flags.sh')
-rw-r--r--.travis/flags.sh17
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
3add_config_flag() { CONFIG_FLAGS="$CONFIG_FLAGS $@"; } 3add_config_flag() { CONFIG_FLAGS+=("$@"); }
4add_c_flag() { C_FLAGS="$C_FLAGS $@"; } 4add_c_flag() { C_FLAGS="$C_FLAGS $@"; }
5add_cxx_flag() { CXX_FLAGS="$CXX_FLAGS $@"; } 5add_cxx_flag() { CXX_FLAGS="$CXX_FLAGS $@"; }
6add_ld_flag() { LD_FLAGS="$LD_FLAGS $@"; } 6add_ld_flag() { LD_FLAGS="$LD_FLAGS $@"; }
7add_flag() { add_c_flag "$@"; add_cxx_flag "$@"; } 7add_flag() {
8 add_c_flag "$@"
9 add_cxx_flag "$@"
10}
8 11
9export LD_LIBRARY_PATH="$CACHEDIR/lib" 12export LD_LIBRARY_PATH="$CACHEDIR/lib"
10export PKG_CONFIG_PATH="$CACHEDIR/lib/pkgconfig" 13export 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.
16CONFIG_FLAGS="" 19CONFIG_FLAGS=()
17C_FLAGS="" 20C_FLAGS=""
18CXX_FLAGS="" 21CXX_FLAGS=""
19LD_FLAGS="" 22LD_FLAGS=""