use tc-getCC
authorMike Frysinger <vapier@gentoo.org>
Thu, 28 Oct 2004 15:57:16 +0000 (15:57 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 28 Oct 2004 15:57:16 +0000 (15:57 +0000)
sys-devel/gcc-config/gcc-config-1.3.6-r3.ebuild
sys-devel/gcc-config/gcc-config-1.3.7-r1.ebuild
sys-devel/gettext/gettext-0.12.1-r2.ebuild
sys-devel/gettext/gettext-0.14.1.ebuild

index d4d3890c40e904fb860e245e60947bf6c4e33f0b..b22562887ce46d7a8828938ccd82fae93034bade 100644 (file)
@@ -1,6 +1,8 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.3.6-r3.ebuild,v 1.3 2004/10/13 13:34:25 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.3.6-r3.ebuild,v 1.4 2004/10/28 15:53:08 vapier Exp $
+
+inherit toolchain-funcs
 
 # Version of .c wrapper to use
 W_VER="1.4.2"
@@ -43,7 +45,7 @@ src_install() {
        fi
 
        einfo "Compiling wrapper..."
-       ${CC:-gcc} -O2 -Wall -o ${WORKDIR}/wrapper \
+       $(tc-getCC) -O2 -Wall -o ${WORKDIR}/wrapper \
                ${FILESDIR}/wrapper-${W_VER}.c || die
 
        exeinto /usr/lib/gcc-config
index a58d1dafd74c9fbfe00f154b221c71e4681f7e5f..c1d3e25e21d84a548a67b442d3bd4d9735bed87b 100644 (file)
@@ -1,6 +1,8 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.3.7-r1.ebuild,v 1.1 2004/10/26 03:14:01 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.3.7-r1.ebuild,v 1.2 2004/10/28 15:53:08 vapier Exp $
+
+inherit toolchain-funcs
 
 # Version of .c wrapper to use
 W_VER="1.4.2"
@@ -28,7 +30,7 @@ src_install() {
        export PATH="${D}/usr/bin:${PATH}"
 
        einfo "Compiling wrapper..."
-       ${CC:-gcc} -O2 -Wall -o ${WORKDIR}/wrapper \
+       $(tc-getCC) -O2 -Wall -o ${WORKDIR}/wrapper \
                ${FILESDIR}/wrapper-${W_VER}.c || die
 
        exeinto /usr/lib/gcc-config
index d86496cf23e773526468bc10db4a3a2df491a241..33b0b53df499b47792f791e0c1c8ece57a78238f 100644 (file)
@@ -1,8 +1,8 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gettext/gettext-0.12.1-r2.ebuild,v 1.10 2004/10/28 15:55:13 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gettext/gettext-0.12.1-r2.ebuild,v 1.11 2004/10/28 15:57:16 vapier Exp $
 
-inherit eutils gnuconfig
+inherit eutils gnuconfig toolchain-funcs
 
 DESCRIPTION="GNU locale utilities"
 HOMEPAGE="http://www.gnu.org/software/gettext/gettext.html"
@@ -45,7 +45,8 @@ src_compile() {
        # need preloadable_libintl.so for new help2man, bug #40162.
        # Also note that it only gets build with USE=nls ...
        # Lastly, we need to build without --disable-shared ...
-       CXX=${CC} econf \
+       CXX=$(tc-getCC) \
+               econf \
                --without-included-gettext \
                ${myconf} || die
 
index 8c8dbdee5b5ccfb2fdf55333d80da7cd3615931e..9eba89d6e532eae122a5b856f91b5c4364b182ba 100644 (file)
@@ -1,8 +1,8 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gettext/gettext-0.14.1.ebuild,v 1.10 2004/10/07 23:51:46 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gettext/gettext-0.14.1.ebuild,v 1.11 2004/10/28 15:57:16 vapier Exp $
 
-inherit eutils gnuconfig gcc mono
+inherit eutils gnuconfig toolchain-funcs mono
 
 DESCRIPTION="GNU locale utilities"
 HOMEPAGE="http://www.gnu.org/software/gettext/gettext.html"
@@ -44,7 +44,7 @@ src_compile() {
        # need preloadable_libintl.so for new help2man, bug #40162.
        # Also note that it only gets build with USE=nls ...
        # Lastly, we need to build without --disable-shared ...
-       CXX=$(gcc-getCC) \
+       CXX=$(tc-getCC) \
                econf \
                --without-included-gettext \
                $(use_enable nls) \