/[gentoo-alt]/trunk/prefix/eclass/debug.eclass
Gentoo

Contents of /trunk/prefix/eclass/debug.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 982 - (show annotations) (download)
Thu Feb 2 04:20:17 2006 UTC (13 years, 2 months ago) by kito
File size: 820 byte(s)
Initial eclass import from gentoo-x86
1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/debug.eclass,v 1.27 2005/08/01 23:58:44 foser Exp $
4 #
5 # Author: Spider
6 #
7 # A general DEBUG eclass to ease inclusion of debugging information
8 # and to remove "bad" flags from CFLAGS
9
10 # Debug ECLASS
11 IUSE="debug"
12
13 if useq debug; then
14 # Do _NOT_ strip symbols in the build! Need both lines for Portage 1.8.9+
15 DEBUG="yes"
16 RESTRICT="${RESTRICT} nostrip"
17 # Remove omit-frame-pointer as some useless folks define that all over the place. they should be shot with a 16 gauge slingshot at least :)
18 # force debug information
19 export CFLAGS="${CFLAGS/-fomit-frame-pointer/} -g"
20 export CXXFLAGS="${CXXFLAGS/-fomit-frame-pointer/} -g"
21 # einfo "CFLAGS and CXXFLAGS redefined"
22 fi

  ViewVC Help
Powered by ViewVC 1.1.20