diff options
author | D.M.D. Ljungmark <spider@gentoo.org> | 2002-06-11 21:24:21 +0000 |
---|---|---|
committer | D.M.D. Ljungmark <spider@gentoo.org> | 2002-06-11 21:24:21 +0000 |
commit | 92f06ca16729c62967dfcabe00b4fc7e559ea13f (patch) | |
tree | 7ac1f542071b3073dc86e67cd18f35d2e43feafc /eclass | |
parent | Whoops. Forgot LICENSE. Don't know how it passed lintool?! (diff) | |
download | historical-92f06ca16729c62967dfcabe00b4fc7e559ea13f.tar.gz historical-92f06ca16729c62967dfcabe00b4fc7e559ea13f.tar.bz2 historical-92f06ca16729c62967dfcabe00b4fc7e559ea13f.zip |
modularised the debug info changes from gnome2.eclass into its own. its small and cute
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/debug.eclass | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/eclass/debug.eclass b/eclass/debug.eclass new file mode 100644 index 000000000000..fb22c3964bed --- /dev/null +++ b/eclass/debug.eclass @@ -0,0 +1,19 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/eclass/debug.eclass,v 1.15 2002/06/11 21:24:21 spider Exp $ + +# Author: Spider +# A general DEBUG eclass to ease inclusion of debugging information and to remove "bad" flags from CFLAGS + +# Debug ECLASS +ECLASS="debug" + +# Do _NOT_ strip symbols in the build! Need both lines for Portage 1.8.9+ +DEBUG="yes" +RESTRICT="nostrip" +# 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 :) +# force debug information +export CFLAGS="${CFLAGS/-fomit-frame-pointer/} -g" +export CXXFLAGS="${CXXFLAGS/-fomit-frame-pointer/} -g" +einfo "CFLAGS and CXXFLAGS redefined" + |