diff options
author | Thomas Orgis | 2016-03-09 21:10:43 +0100 |
---|---|---|
committer | Thomas Orgis | 2016-03-09 21:10:43 +0100 |
commit | d8d7070502998e6907ca5298ec727a543cf6df53 (patch) | |
tree | 1815aa406e0e04ec83e535bdb3cbecdf39e28685 /FUNCTIONS | |
parent | 4657bfce3098fdd052686361f84293f03d444d79 (diff) |
FUNCTIONS: CXXFLAGS in waf_build (needed for guitarix2)
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-x | FUNCTIONS | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -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 } |