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

Diff of /eclass/makeedit.eclass

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

Revision 1.2 Revision 1.3
1# Copyright 1999-2002 Gentoo Technologies, Inc. 1# Copyright 1999-2002 Gentoo Technologies, Inc.
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.2 2002/07/26 21:50:16 danarmak Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/makeedit.eclass,v 1.3 2002/08/04 16:22:34 spider Exp $
4 4
5# Author: Spider 5# Author: Spider
6# makeedit eclass, will remove -Wreturn-type and -Wall from compiling, this will reduce the RAM requirements. 6# makeedit eclass, will remove -Wreturn-type and -Wall from compiling, this will reduce the RAM requirements.
7 7
8# Debug ECLASS 8# Debug ECLASS
9ECLASS="makeedit" 9ECLASS="makeedit"
10INHERITED="$INHERITED $ECLASS" 10INHERITED="$INHERITED $ECLASS"
11 11
12INHERITED="$INHERITED $ECLASS" 12INHERITED="$INHERITED $ECLASS"
13export CFLAGS="${CFLAGS} -Wno-return-type" 13export CFLAGS="${CFLAGS} -Wno-return-type -w"
14export CXXFLAGS="${CXXFLAGS} -Wno-return-type" 14export CXXFLAGS="${CXXFLAGS} -Wno-return-type -w"
15 15
16edit_makefiles () { 16edit_makefiles () {
17 find . -iname makefile |while read MAKEFILE 17 find . -iname makefile |while read MAKEFILE
18 do einfo "parsing ${MAKEFILE}" 18 do einfo "parsing ${MAKEFILE}"
19 cp ${MAKEFILE} ${MAKEFILE}.old 19 cp ${MAKEFILE} ${MAKEFILE}.old
20 sed -e "s:-Wall:-Wall -Wno-return-type:g" \ 20 sed -e "s:-Wall:-Wno-return-type:g" \
21 -e "s:-Wreturn-type:-Wno-return-type:g" \ 21 -e "s:-Wreturn-type:-Wno-return-type:g" \
22 -e "s:-pedantic::g" ${MAKEFILE}.old > ${MAKEFILE} 22 -e "s:-pedantic::g" ${MAKEFILE}.old > ${MAKEFILE}
23 done 23 done
24 24
25} 25}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20