Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265482 - sci-physics/root-5.22.00-r1 - respect CC and CXX
Summary: sci-physics/root-5.22.00-r1 - respect CC and CXX
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High QA (vote)
Assignee: Gentoo Science Physics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-08 19:39 UTC by Jeroen Roovers (RETIRED)
Modified: 2009-04-13 11:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.