Gentoo Archives: gentoo-user

From: dhk <dhkuhl@×××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Setting CFLAGS for a single build
Date: Thu, 29 May 2008 09:51:32
Message-Id: 483E4389.1010403@optonline.net
In Reply to: Re: [gentoo-user] Setting CFLAGS for a single build by Alex Schuster
1 Alex Schuster wrote:
2 > Anthony Metcalf writes:
3 >> Alex Schuster wrote:
4 >>> Um, I meand -nostrip, as I wrote in the example below. But I just
5 >>> tried for myself - I see the -g2 (multiple times), but after
6 >>> building, stripping takes place, even with the one-time
7 >>> FEATURES=-nostrip emerge -1 libxml2 approach:
8 >> Emmm, FEATURES="nostrip" will not strip the binary, i.e. leave the
9 >> debugging info there.....FEATURES="-nostrip" will jnot, not strip the
10 >> binary, i.e it will strip the bianry, i.e. it will remove the debugging
11 >> info! The " marks are vital....
12 >
13 > Oh my. I wanted to correct my mistake, but did that the other way around.
14 > I even had the -nostrip in my own test, at least now know why it
15 > failed :) FEATURES="$FEATURES nostrip" seems to work just fine.
16 >
17 > Thanks for spotting this,
18 > Wonko
19 This seems like it should work, but I still can't step into the libxml2
20 functions. In /etc/portage/env/dev-libs there is a file called libxml2
21 the results of cat are:
22 CFLAGS="$CFLAGS -g2"
23 FEATURES="$FEATURES nostrip"
24
25 When I try to step into a library function, gdb print a line number and
26 then seem to be lost and can't find anything.
27
28 Thanks again.
29
30 --
31 gentoo-user@l.g.o mailing list