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

Contents of /eclass/makeedit.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (hide annotations) (download)
Sat Jul 2 03:19:12 2005 UTC (9 years, 1 month ago) by agriffis
Branch: MAIN
Changes since 1.7: +18 -26 lines
Don't append to CFLAGS in global scope #56409

1 vapier 1.6 # Copyright 1999-2004 Gentoo Foundation
2 spider 1.1 # Distributed under the terms of the GNU General Public License v2
3 agriffis 1.8 # $Header: /var/cvsroot/gentoo-x86/eclass/makeedit.eclass,v 1.7 2004/10/19 19:51:12 vapier Exp $
4 vapier 1.5 #
5 spider 1.1 # Author: Spider
6 vapier 1.5 #
7 agriffis 1.8 # To use this eclass, do 2 things:
8     # 1. append-flags "$MAKEEDIT_FLAGS". If you filter-flags, make sure to do
9     # the append-flags afterward, otherwise you'll lose them.
10     # 2. after running configure or econf, call edit_makefiles to remove
11     # extraneous CFLAGS from your Makefiles.
12     #
13     # This combination should reduce the RAM requirements of your build, and maybe
14     # even speed it up a bit.
15 spider 1.1
16     ECLASS="makeedit"
17 danarmak 1.2 INHERITED="$INHERITED $ECLASS"
18 spider 1.1
19 agriffis 1.8 MAKEEDIT_FLAGS="-Wno-return-type -w"
20 spider 1.1
21 agriffis 1.8 edit_makefiles() {
22     # We already add "-Wno-return-type -w" to compiler flags, so
23     # no need to replace "-Wall" and "-Wreturn-type" with them.
24 vapier 1.7 einfo "Parsing Makefiles ..."
25 agriffis 1.8 find . -iname makefile -o -name \*.mk -o -name GNUmakefile -print0 | \
26     xargs -0 sed -i \
27     -e 's:-Wall::g' \
28     -e 's:-Wreturn-type::g' \
29     -e 's:-pedantic::g'
30 spider 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20