summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD.M.D. Ljungmark <spider@gentoo.org>2002-07-24 23:57:00 +0000
committerD.M.D. Ljungmark <spider@gentoo.org>2002-07-24 23:57:00 +0000
commit0747fc49596981ce42313ca7d938a879f236f3e1 (patch)
treed32ce890e969848bd0390530aeac4417e629f42b /eclass/makeedit.eclass
parentwerks (diff)
downloadhistorical-0747fc49596981ce42313ca7d938a879f236f3e1.tar.gz
historical-0747fc49596981ce42313ca7d938a879f236f3e1.tar.bz2
historical-0747fc49596981ce42313ca7d938a879f236f3e1.zip
Experimental makefile changer eclass. will do some nice memory optimizations
Diffstat (limited to 'eclass/makeedit.eclass')
-rw-r--r--eclass/makeedit.eclass24
1 files changed, 24 insertions, 0 deletions
diff --git a/eclass/makeedit.eclass b/eclass/makeedit.eclass
new file mode 100644
index 000000000000..0f8f9b658087
--- /dev/null
+++ b/eclass/makeedit.eclass
@@ -0,0 +1,24 @@
+# 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.1 2002/07/24 23:57:00 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"
+export CFLAGS="${CFLAGS} -Wno-return-type"
+export CXXFLAGS="${CXXFLAGS} -Wno-return-type"
+
+edit_makefiles () {
+ find . -iname makefile |while read MAKEFILE
+ do einfo "parsing ${MAKEFILE}"
+ cp ${MAKEFILE} ${MAKEFILE}.old
+ sed -e "s:-Wall:-Wall -Wno-return-type:g" \
+ -e "s:-Wreturn-type:-Wno-return-type:g" \
+ -e "s:-pedantic::g" ${MAKEFILE}.old > ${MAKEFILE}
+ done
+
+}