/[gentoo-x86]/eclass/makeedit.eclass
Gentoo

Diff of /eclass/makeedit.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.6 Revision 1.7
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/makeedit.eclass,v 1.6 2004/06/25 00:39:48 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/makeedit.eclass,v 1.7 2004/10/19 19:51:12 vapier Exp $
4# 4#
5# Author: Spider 5# Author: Spider
6# 6#
7# makeedit eclass, will remove -Wreturn-type and -Wall from compiling, 7# makeedit eclass, will remove -Wreturn-type and -Wall from compiling,
8# this will reduce the RAM requirements. 8# this will reduce the RAM requirements.
13 13
14export CFLAGS="${CFLAGS} -Wno-return-type -w" 14export CFLAGS="${CFLAGS} -Wno-return-type -w"
15export CXXFLAGS="${CXXFLAGS} -Wno-return-type -w" 15export CXXFLAGS="${CXXFLAGS} -Wno-return-type -w"
16 16
17edit_makefiles () { 17edit_makefiles () {
18 einfo "Parsing Makefiles..." 18 einfo "Parsing Makefiles ..."
19 find . -iname makefile | while read MAKEFILE 19 find . -iname makefile | while read MAKEFILE
20 do 20 do
21 cp ${MAKEFILE} ${MAKEFILE}.old 21 cp ${MAKEFILE} ${MAKEFILE}.old
22 # We already add "-Wno-return-type -w" to compiler flags, so 22 # We already add "-Wno-return-type -w" to compiler flags, so
23 # no need to replace "-Wall" and "-Wreturn-type" with them. 23 # no need to replace "-Wall" and "-Wreturn-type" with them.

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20