diff options
author | Karl Trygve Kalleberg <karltk@gentoo.org> | 2005-07-03 18:08:58 +0000 |
---|---|---|
committer | Karl Trygve Kalleberg <karltk@gentoo.org> | 2005-07-03 18:08:58 +0000 |
commit | 5261d74fa458a8db9518d864532b508ba6c1f44d (patch) | |
tree | 54f79a4d65197b16b2393e1e455dc86ef6e751fd /dev-util/eclipse-sdk | |
parent | Clean up /dev issues near init with the linuxrc. (diff) | |
download | gentoo-2-5261d74fa458a8db9518d864532b508ba6c1f44d.tar.gz gentoo-2-5261d74fa458a8db9518d864532b508ba6c1f44d.tar.bz2 gentoo-2-5261d74fa458a8db9518d864532b508ba6c1f44d.zip |
Added back cflags check.
(Portage version: 2.0.51.19)
Diffstat (limited to 'dev-util/eclipse-sdk')
-rw-r--r-- | dev-util/eclipse-sdk/eclipse-sdk-3.1.ebuild | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/dev-util/eclipse-sdk/eclipse-sdk-3.1.ebuild b/dev-util/eclipse-sdk/eclipse-sdk-3.1.ebuild index 93eadad6dab3..53e21bd712ce 100644 --- a/dev-util/eclipse-sdk/eclipse-sdk-3.1.ebuild +++ b/dev-util/eclipse-sdk/eclipse-sdk-3.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/eclipse-sdk/eclipse-sdk-3.1.ebuild,v 1.1 2005/07/03 17:48:17 karltk Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/eclipse-sdk/eclipse-sdk-3.1.ebuild,v 1.2 2005/07/03 18:08:58 karltk Exp $ inherit eutils java-utils @@ -40,6 +40,7 @@ pkg_setup() { einfo "Checking for sufficient physical RAM" check-ram + check-cflags java-utils_setup-vm @@ -360,3 +361,32 @@ function strip-docs() { function recompile-with-gcj() { :; } + +function check-cflags() { + + einfo "Checking for bad CFLAGS" + + local badflags="-fomit-frame-pointer -msse2" + local error=false + + for x in ${badflags} ; do + if [ ! -z "$(echo ${CFLAGS} | grep -- $x)" ] ; then + ewarn "Found offending option $x in your CFLAGS" + error=true + fi + done + if [ ${error} == "true" ]; then + echo + ewarn "One or more potentially gruesome CFLAGS detected. When you run into trouble," + ewarn "please edit /etc/make.conf and remove all offending flags, then recompile" + ewarn "Eclipse and all its dependencies before submitting a bug report." + echo + ewarn "In particular, gtk+ is extremely sensitive to which which flags it was" + ewarn "compiled with." + echo + einfo "Tip: use equery depgraph \"=${PF}\" to list all dependencies." + echo + ebeep + fi +} + |