diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-07-17 04:43:50 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-07-17 04:43:50 +0000 |
commit | 15afb2d42db194015ee7f61511bdb6e3821c1cdc (patch) | |
tree | 28c9d6d60626603c77051e13a82cdd6a7571529b /eclass | |
parent | fix ordering of @ECLASS keywords (diff) | |
download | gentoo-2-15afb2d42db194015ee7f61511bdb6e3821c1cdc.tar.gz gentoo-2-15afb2d42db194015ee7f61511bdb6e3821c1cdc.tar.bz2 gentoo-2-15afb2d42db194015ee7f61511bdb6e3821c1cdc.zip |
detect if waf supports --libdir as some versions (like glmark2) do not #412133
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/waf-utils.eclass | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/eclass/waf-utils.eclass b/eclass/waf-utils.eclass index 9ab975da771c..b25614105b84 100644 --- a/eclass/waf-utils.eclass +++ b/eclass/waf-utils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/waf-utils.eclass,v 1.11 2012/06/07 05:02:33 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/waf-utils.eclass,v 1.12 2012/07/17 04:43:50 vapier Exp $ # @ECLASS: waf-utils.eclass # @MAINTAINER: @@ -41,11 +41,15 @@ waf-utils_src_configure() { : ${WAF_BINARY:="${S}/waf"} tc-export AR CC CPP CXX RANLIB - echo "CCFLAGS=\"${CFLAGS}\" LINKFLAGS=\"${LDFLAGS}\" \"${WAF_BINARY}\" --prefix=${EPREFIX}/usr --libdir=${EPREFIX}/usr/$(get_libdir) $@ configure" + + # Make sure this waf supports --libdir #412133 + if "${WAF_BINARY}" --help | grep -q -e--libdir ; then + set -- "--libdir=${EPREFIX}/usr/$(get_libdir)" "$@" + fi + echo "CCFLAGS=\"${CFLAGS}\" LINKFLAGS=\"${LDFLAGS}\" \"${WAF_BINARY}\" --prefix=${EPREFIX}/usr $@ configure" CCFLAGS="${CFLAGS}" LINKFLAGS="${LDFLAGS}" "${WAF_BINARY}" \ "--prefix=${EPREFIX}/usr" \ - "--libdir=${EPREFIX}/usr/$(get_libdir)" \ "$@" \ configure || die "configure failed" } |