commit:     3c64efbebda855e90234aa07732a6494a38efaf6
Author:     Yuta SATOH <nigoro <AT> gentoo <DOT> gr <DOT> jp>
AuthorDate: Sun Oct 26 12:34:23 2014 +0000
Commit:     Yuta SATOH <nigoro.gentoo <AT> 0x100 <DOT> com>
CommitDate: Sun Oct 26 12:34:23 2014 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/gentoo-bsd.git;a=commit;h=3c64efbe

freebsd.eclass: added WITH_GCC= WITH_GNUCXX= etc.

---
 eclass/freebsd.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/freebsd.eclass b/eclass/freebsd.eclass
index 8ad32c8..aaeeba9 100644
--- a/eclass/freebsd.eclass
+++ b/eclass/freebsd.eclass
@@ -159,6 +159,7 @@ freebsd_src_compile() {
        use profile || mymakeopts="${mymakeopts} NO_PROFILE= "
 
        mymakeopts="${mymakeopts} NO_MANCOMPRESS= NO_INFOCOMPRESS= NO_FSCHG="
+       [[ $(tc-getCC) == *gcc* ]] && mymakeopts="${mymakeopts} WITHOUT_CLANG= 
WITHOUT_CLANG_FULL= WITHOUT_CLANG_IS_CC= WITH_GCC= WITH_GNUCXX= "
 
        # Make sure to use FreeBSD definitions while crosscompiling
        [[ -z "${BMAKE}" ]] && BMAKE="$(freebsd_get_bmake)"
@@ -220,6 +221,7 @@ freebsd_src_install() {
        use profile || mymakeopts="${mymakeopts} NO_PROFILE= "
 
        mymakeopts="${mymakeopts} NO_MANCOMPRESS= NO_INFOCOMPRESS= NO_FSCHG="
+       [[ $(tc-getCC) == *gcc* ]] && mymakeopts="${mymakeopts} WITHOUT_CLANG= 
WITHOUT_CLANG_FULL= WITHOUT_CLANG_IS_CC= WITH_GCC= WITH_GNUCXX= "
 
        [[ -z "${BMAKE}" ]] && BMAKE="$(freebsd_get_bmake)"
 

Reply via email to