commit:     58d910c1b685e65946742b7d6f02593c2425f1e5
Author:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 15 00:11:15 2014 +0000
Commit:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
CommitDate: Fri Aug 15 00:11:15 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=58d910c1

[qt5-build.eclass] Export toolchain variables only when needed.

The variables exported by tc-export are used only by the configure script.

---
 eclass/qt5-build.eclass | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 5923b0e..1e053ea 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -209,15 +209,14 @@ qt5-build_src_prepare() {
 # @DESCRIPTION:
 # Runs qmake, possibly preceded by ./configure.
 qt5-build_src_configure() {
-       # toolchain setup
-       tc-export CC CXX RANLIB STRIP
-       # qmake-generated Makefiles use LD/LINK for linking
-       export LD="$(tc-getCXX)"
-
        mkdir -p "${QT5_BUILD_DIR}" || die
        pushd "${QT5_BUILD_DIR}" >/dev/null || die
 
        if [[ ${QT5_MODULE} == qtbase ]]; then
+               # toolchain setup
+               tc-export CC CXX RANLIB STRIP
+               export LD="$(tc-getCXX)"
+
                qt5_base_configure
        fi
 

Reply via email to