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

Contents of /eclass/makeedit.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Aug 4 16:22:34 2002 UTC (11 years, 8 months ago) by spider
Branch: MAIN
Changes since 1.2: +4 -4 lines
more flag changes

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

  ViewVC Help
Powered by ViewVC 1.1.20