From 0d54c4665357200944c64712c8c896eab733199c Mon Sep 17 00:00:00 2001 From: Christian Heim Date: Wed, 10 Oct 2007 19:27:27 +0000 Subject: Fixing #156800 by issuing -fno-stack-protector if we are having a GCC_MAJOR equal to 3. Package-Manager: portage-2.1.3.9 --- dev-util/cmake/cmake-2.4.6-r1.ebuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'dev-util/cmake/cmake-2.4.6-r1.ebuild') diff --git a/dev-util/cmake/cmake-2.4.6-r1.ebuild b/dev-util/cmake/cmake-2.4.6-r1.ebuild index 08a076565075..3b3c63a42d25 100644 --- a/dev-util/cmake/cmake-2.4.6-r1.ebuild +++ b/dev-util/cmake/cmake-2.4.6-r1.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/cmake-2.4.6-r1.ebuild,v 1.9 2007/06/26 18:10:09 pylon Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/cmake-2.4.6-r1.ebuild,v 1.10 2007/10/10 19:27:27 phreak Exp $ -inherit elisp-common toolchain-funcs eutils versionator qt3 +inherit elisp-common toolchain-funcs eutils versionator qt3 flag-o-matic DESCRIPTION="Cross platform Make" HOMEPAGE="http://www.cmake.org/" @@ -24,6 +24,11 @@ VIMFILE="${PN}.vim" src_compile() { cd ${S} + + if [ "$(gcc-major-version)" -eq "3" ] ; then + append-flags "-fno-stack-protector" + fi + tc-export CC CXX LD ./bootstrap \ --prefix=/usr \ -- cgit v1.2.3-65-gdbad