Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 265482

Summary: sci-physics/root-5.22.00-r1 - respect CC and CXX
Product: Gentoo Linux Reporter: Jeroen Roovers (RETIRED) <jer>
Component: New packagesAssignee: Gentoo Science Physics related packages <sci-physics>
Status: RESOLVED FIXED    
Severity: QA    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jeroen Roovers (RETIRED) gentoo-dev 2009-04-08 19:39:39 UTC
The patch below should help in cross-compiling root (and is hence very useful with distcc too).


Index: root-5.22.00-r1.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.22.00-r1.ebuild,v
retrieving revision 1.1
diff -u -B -r1.1 root-5.22.00-r1.ebuild
--- root-5.22.00-r1.ebuild      6 Apr 2009 22:33:43 -0000       1.1
+++ root-5.22.00-r1.ebuild      8 Apr 2009 19:36:50 -0000
@@ -146,6 +146,8 @@
 src_configure() {
        # the configure script is not the standard autotools
        ./configure \
+               --with-cc=$(tc-getCC) \
+               --with-cxx=$(tc-getCXX) \
                --fail-on-missing \
                --prefix=/usr \
                --libdir=/usr/$(get_libdir)/${PN} \
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2009-04-09 00:54:38 UTC
Or we go all the way and provide the canonical toolchain commands for every of the four tools:

Index: root-5.22.00-r1.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.22.00-r1.ebuild,v
retrieving revision 1.1
diff -u -B -r1.1 root-5.22.00-r1.ebuild
--- root-5.22.00-r1.ebuild      6 Apr 2009 22:33:43 -0000       1.1
+++ root-5.22.00-r1.ebuild      9 Apr 2009 00:53:06 -0000
@@ -146,6 +146,10 @@
 src_configure() {
        # the configure script is not the standard autotools
        ./configure \
+               --with-cc=$(tc-getCC) \
+               --with-cxx=$(tc-getCXX) \
+               --with-f77=$(tc-getFC) \
+               --with-ld=$(tc-getLD) \
                --fail-on-missing \
                --prefix=/usr \
                --libdir=/usr/$(get_libdir)/${PN} \
Comment 2 Sébastien Fabbro (RETIRED) gentoo-dev 2009-04-13 11:34:21 UTC
Applied in 5.22.00-r1 and 5.20.00 (not the getLD). Thanks.