Lines 1-6
Link Here
|
1 |
# Copyright 1999-2004 Gentoo Foundation |
1 |
# Copyright 1999-2006 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
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 $ |
3 |
# $Header: $ |
4 |
# |
4 |
# |
5 |
# Author: Spider |
5 |
# Author: Spider |
6 |
# |
6 |
# |
Lines 8-22
Link Here
|
8 |
# and to remove "bad" flags from CFLAGS |
8 |
# and to remove "bad" flags from CFLAGS |
9 |
|
9 |
|
10 |
# Debug ECLASS |
10 |
# Debug ECLASS |
11 |
IUSE="debug" |
|
|
12 |
|
11 |
|
13 |
if useq debug; then |
12 |
inherit flag-o-matic |
|
|
13 |
|
14 |
if hasq debug ${IUSE}; then |
14 |
# Do _NOT_ strip symbols in the build! Need both lines for Portage 1.8.9+ |
15 |
# Do _NOT_ strip symbols in the build! Need both lines for Portage 1.8.9+ |
15 |
DEBUG="yes" |
16 |
DEBUG="yes" |
16 |
RESTRICT="${RESTRICT} nostrip" |
17 |
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 |
# Remove omit-frame-pointer, force debug information |
18 |
# force debug information |
19 |
filter-flags -fomit-frame-pointer |
19 |
export CFLAGS="${CFLAGS/-fomit-frame-pointer/} -g" |
20 |
append-flags -g |
20 |
export CXXFLAGS="${CXXFLAGS/-fomit-frame-pointer/} -g" |
|
|
21 |
# einfo "CFLAGS and CXXFLAGS redefined" |
21 |
# einfo "CFLAGS and CXXFLAGS redefined" |
22 |
fi |
22 |
fi |