summaryrefslogtreecommitdiff
blob: a6736120cb2c07d9bd03ce8198bea305f7611f0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/makeedit.eclass,v 1.3 2002/08/04 16:22:34 spider Exp $

# Author: Spider
# makeedit eclass, will remove -Wreturn-type and -Wall from compiling, this will reduce the RAM requirements.

# Debug ECLASS
ECLASS="makeedit"
INHERITED="$INHERITED $ECLASS"

INHERITED="$INHERITED $ECLASS"
export CFLAGS="${CFLAGS} -Wno-return-type -w"
export CXXFLAGS="${CXXFLAGS} -Wno-return-type -w"

edit_makefiles () {
	find . -iname makefile |while read MAKEFILE
		do einfo "parsing ${MAKEFILE}"
		cp ${MAKEFILE}  ${MAKEFILE}.old
		sed -e "s:-Wall:-Wno-return-type:g" \
			-e "s:-Wreturn-type:-Wno-return-type:g" \
			-e "s:-pedantic::g" ${MAKEFILE}.old > ${MAKEFILE}
	done
		
}