summaryrefslogtreecommitdiffstats
path: root/FUNCTIONS
diff options
context:
space:
mode:
authorThomas Orgis2018-03-27 10:22:17 +0200
committerThomas Orgis2018-03-27 10:22:17 +0200
commitde38b9a17e2613c9a193de679d89f16be1857453 (patch)
tree6c8e43a7e5dc676bec6c71a2a4f0a706250abc6e /FUNCTIONS
parent7f8bf4fd1fa0bd6ce646b590cf1d0c52cf9b5036 (diff)
FUNCTIONS: waf_build --libdir=$PREFIX/lib (not lib64)
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-xFUNCTIONS9
1 files changed, 6 insertions, 3 deletions
diff --git a/FUNCTIONS b/FUNCTIONS
index 978b8f7409..71bb7ca5df 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -546,15 +546,18 @@ function note_config_files() {
# so check first if they are supported..
function waf_build() {
- local waf_opts="--prefix=$INSTALL_ROOT/usr"
+ local waf_opts="--prefix=$INSTALL_ROOT/usr" &&
# Some waf not know man, waf angry with man.
if ./waf --help | grep -q -- --mandir; then
waf_opts="$waf_opts --mandir=$INSTALL_ROOT/usr/share/man"
- fi
+ fi &&
# Same with some other options.
+ if ./waf --help | grep -q -- --libdir; then
+ waf_opts="$waf_opts --libdir=$INSTALL_ROOT/usr/lib"
+ fi &&
if ./waf --help | grep -q -- --nocache; then
waf_opts="$waf_opts --nocache"
- fi
+ fi &&
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