summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorYuta SATOH <nigoro@gentoo.gr.jp>2014-10-26 21:34:23 +0900
committerYuta SATOH <nigoro@gentoo.gr.jp>2014-10-26 21:34:23 +0900
commit3c64efbebda855e90234aa07732a6494a38efaf6 (patch)
treecc68554847ba74fc6fa9a6b9c484e761ac43a289 /eclass
parentupdate catalyst-2.0.15-fbsd-extra.patch and stages_builder.sh (diff)
downloadgentoo-bsd-3c64efbebda855e90234aa07732a6494a38efaf6.tar.gz
gentoo-bsd-3c64efbebda855e90234aa07732a6494a38efaf6.tar.bz2
gentoo-bsd-3c64efbebda855e90234aa07732a6494a38efaf6.zip
freebsd.eclass: added WITH_GCC= WITH_GNUCXX= etc.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/freebsd.eclass2
1 files changed, 2 insertions, 0 deletions
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)"