summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2005-02-20 14:52:42 +0000
committerMartin Schlemmer <azarah@gentoo.org>2005-02-20 14:52:42 +0000
commitbb52322182f5cf3947abb1298cd3fb40b2c2b40e (patch)
treea36c5f50894eabf7c022e3b8b429724c9f9b893c /dev-lang/nasm
parentheader fix (diff)
downloadgentoo-2-bb52322182f5cf3947abb1298cd3fb40b2c2b40e.tar.gz
gentoo-2-bb52322182f5cf3947abb1298cd3fb40b2c2b40e.tar.bz2
gentoo-2-bb52322182f5cf3947abb1298cd3fb40b2c2b40e.zip
Remove -std=c99 from CFLAGS set by configure if we build with gcc-2.95.3.
(Portage version: 2.0.51-r15)
Diffstat (limited to 'dev-lang/nasm')
-rw-r--r--dev-lang/nasm/ChangeLog5
-rw-r--r--dev-lang/nasm/nasm-0.98.39.ebuild7
2 files changed, 10 insertions, 2 deletions
diff --git a/dev-lang/nasm/ChangeLog b/dev-lang/nasm/ChangeLog
index 0fd06028c646..24010abbe5f7 100644
--- a/dev-lang/nasm/ChangeLog
+++ b/dev-lang/nasm/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-lang/nasm
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/nasm/ChangeLog,v 1.30 2005/02/01 07:16:57 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/nasm/ChangeLog,v 1.31 2005/02/20 14:52:42 azarah Exp $
+
+ 20 Feb 2005; Martin Schlemmer <azarah@gentoo.org> nasm-0.98.39.ebuild:
+ Remove -std=c99 from CFLAGS set by configure if we build with gcc-2.95.3.
*nasm-0.98.39 (01 Feb 2005)
diff --git a/dev-lang/nasm/nasm-0.98.39.ebuild b/dev-lang/nasm/nasm-0.98.39.ebuild
index 82e1e02f9be7..39f8632d6b9c 100644
--- a/dev-lang/nasm/nasm-0.98.39.ebuild
+++ b/dev-lang/nasm/nasm-0.98.39.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/nasm/nasm-0.98.39.ebuild,v 1.1 2005/02/01 07:16:57 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/nasm/nasm-0.98.39.ebuild,v 1.2 2005/02/20 14:52:42 azarah Exp $
+
+inherit toolchain-funcs
DESCRIPTION="groovy little assembler"
HOMEPAGE="http://nasm.sourceforge.net/"
@@ -18,6 +20,9 @@ DEPEND="!build? ( dev-lang/perl )
RDEPEND="virtual/libc"
src_compile() {
+ [ "$(gcc-major-version)" -eq "2" ] && \
+ sed -i -e 's:-std=c99::g' ${S}/configure
+
./configure --prefix=/usr || die
if use build; then