summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD.M.D. Ljungmark <spider@gentoo.org>2002-06-11 21:24:21 +0000
committerD.M.D. Ljungmark <spider@gentoo.org>2002-06-11 21:24:21 +0000
commitda511e7c7be31873d518a0461159bf85ff102d60 (patch)
treee10d330ee195e8ccb3ae70b38a4f435489d2bbd7 /eclass/debug.eclass
parentWhoops. Forgot LICENSE. Don't know how it passed lintool?! (diff)
downloadgentoo-2-da511e7c7be31873d518a0461159bf85ff102d60.tar.gz
gentoo-2-da511e7c7be31873d518a0461159bf85ff102d60.tar.bz2
gentoo-2-da511e7c7be31873d518a0461159bf85ff102d60.zip
modularised the debug info changes from gnome2.eclass into its own. its small and cute
Diffstat (limited to 'eclass/debug.eclass')
-rw-r--r--eclass/debug.eclass19
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"
+