summaryrefslogtreecommitdiffstats
path: root/FUNCTIONS
diff options
context:
space:
mode:
authorThomas Orgis2016-03-09 21:10:43 +0100
committerThomas Orgis2016-03-09 21:10:43 +0100
commitd8d7070502998e6907ca5298ec727a543cf6df53 (patch)
tree1815aa406e0e04ec83e535bdb3cbecdf39e28685 /FUNCTIONS
parent4657bfce3098fdd052686361f84293f03d444d79 (diff)
FUNCTIONS: CXXFLAGS in waf_build (needed for guitarix2)
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-xFUNCTIONS17
1 files changed, 14 insertions, 3 deletions
diff --git a/FUNCTIONS b/FUNCTIONS
index 7115c44d9a..bd075d83d0 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -537,9 +537,20 @@ function waf_build() {
if ./waf --help | grep -q -- --nocache; then
waf_opts="$waf_opts --nocache"
fi
- ./waf configure $waf_opts \
- -j $MAKE_NJOBS \
- $OPTS &&
+ if ./waf --help | grep -q -- --cxxflags=CXXFLAGS; then
+ # Hack added for guitarix, maybe useful for others, too.
+ # Needed to be able to enable C++11 mode. We hope to be able
+ # Slip in something here. Full control ist still in waf's hands and
+ # it probably will add flags as it wants:-/
+ ./waf configure $waf_opts \
+ -j $MAKE_NJOBS \
+ --cxxflags="$CXXFLAGS" \
+ $OPTS
+ else
+ ./waf configure $waf_opts \
+ -j $MAKE_NJOBS \
+ $OPTS
+ fi &&
./waf build
}