vp-build/common/build-style/waf.sh
q66 82eec0d023 common/build-style/waf,waf3: explicitly pass libdir
Waf has a utility function ('lib64' in waflib/Utils.py) which
either returns an empty string or '64' depending on if either of
the paths '/usr/lib64' or '/usr/local/lib64' exist. Then, the
build system itself decides its default LIBDIR to be either
/usr/lib or /usr/lib64 depending on the result of that function,
except when libdir is passed explicitly.

We don't allow lib64 in our packages. We do have the /usr/lib64
path as that is a symlink. Therefore, do not ever allow waf to
configure the path that way.
2019-01-26 18:43:09 -02:00

21 lines
497 B
Bash

#
# This helper is for templates using WAF to build/install.
#
do_configure() {
: ${configure_script:=waf}
PYTHON=/usr/bin/python2 python2 ${configure_script} configure --prefix=/usr --libdir=/usr/lib ${configure_args}
}
do_build() {
: ${configure_script:=waf}
PYTHON=/usr/bin/python2 python2 ${configure_script} build ${make_build_args}
}
do_install() {
: ${configure_script:=waf}
PYTHON=/usr/bin/python2 python2 ${configure_script} install --destdir=${DESTDIR} ${make_install_args}
}