summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-03-24 08:30:19 +0000
committerMike Frysinger <vapier@gentoo.org>2011-03-24 08:30:19 +0000
commitbc5966e204c8ca89b81c830cda5cbd8bb14ba770 (patch)
tree672cfecb56728a773d6f29c676a7e214850cb3d7 /eclass/toolchain.eclass
parentVersion bump. Update to EAPI 4 and bump vda patch. (diff)
downloadhistorical-bc5966e204c8ca89b81c830cda5cbd8bb14ba770.tar.gz
historical-bc5966e204c8ca89b81c830cda5cbd8bb14ba770.tar.bz2
historical-bc5966e204c8ca89b81c830cda5cbd8bb14ba770.zip
disable libgomp for cross-compilers that cant support it #359855 by Andrei Slavoiu
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 10c21ec8d9af..7b9a44583d58 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.453 2011/03/18 20:28:32 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.454 2011/03/24 08:30:19 vapier Exp $
#
# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
@@ -1170,8 +1170,12 @@ gcc-compiler-configure() {
$(tc-getCPP ${CTARGET}) -E - <<<"#include <pthread.h>" >& /dev/null
then
confgcc="${confgcc} $(use_enable openmp libgomp)"
+ else
+ # Force disable as the configure script can be dumb #359855
+ confgcc="${confgcc} --disable-libgomp"
fi
else
+ # For gcc variants where we don't want openmp (e.g. kgcc)
confgcc="${confgcc} --disable-libgomp"
fi
fi