summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2008-07-17 09:58:40 +0000
committerPeter Volkov <pva@gentoo.org>2008-07-17 09:58:40 +0000
commitbc792edca456a15f2615951470d5b412e275639b (patch)
tree272a80edb9d4fa2a5b163e264f7cf017afdaf3ad /eclass
parentMake eclass ready for eclass-manpages, bug #210363, thank mren for all work. (diff)
downloadgentoo-2-bc792edca456a15f2615951470d5b412e275639b.tar.gz
gentoo-2-bc792edca456a15f2615951470d5b412e275639b.tar.bz2
gentoo-2-bc792edca456a15f2615951470d5b412e275639b.zip
Make eclass ready for eclass-manpages, bug #211227, thank mren for all work.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/makeedit.eclass15
1 files changed, 12 insertions, 3 deletions
diff --git a/eclass/makeedit.eclass b/eclass/makeedit.eclass
index 66d8d51362c7..bd744b8f80d9 100644
--- a/eclass/makeedit.eclass
+++ b/eclass/makeedit.eclass
@@ -1,14 +1,20 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/makeedit.eclass,v 1.11 2005/09/26 22:22:08 azarah Exp $
-#
+# $Header: /var/cvsroot/gentoo-x86/eclass/makeedit.eclass,v 1.12 2008/07/17 09:58:40 pva Exp $
+
+# @ECLASS: makeedit.eclass
+# @MAINTAINER:
# Author: Spider
+# @BLURB: An eclass to replace some flags in makefiles
+# @DESCRIPTION:
#
+# @CODE
# To use this eclass, do 2 things:
# 1. append-flags "$MAKEEDIT_FLAGS". If you filter-flags, make sure to do
# the append-flags afterward, otherwise you'll lose them.
# 2. after running configure or econf, call edit_makefiles to remove
# extraneous CFLAGS from your Makefiles.
+# @CODE
#
# This combination should reduce the RAM requirements of your build, and maybe
# even speed it up a bit.
@@ -16,6 +22,9 @@
MAKEEDIT_FLAGS="-Wno-return-type -w"
+# @FUNCTION: edit_makefiles
+# @DESCRIPTION:
+# Removes some flags in makefiles
edit_makefiles() {
# We already add "-Wno-return-type -w" to compiler flags, so
# no need to replace "-Wall" and "-Wreturn-type" with them.