I did the build the non-persistent way and ran my program with the
debugger. When I got to the breakpoint for the the library function it
says "no line number". See the following from gdb.
3271 pobj=xmlXPathEvalExpression(tag, pctx);
(gdb)
Breakpoint 3, 0x00002ab4493e4480 in xmlXPathEvalExpression ()
from /usr/lib/libxml2.so.2
(gdb)
Single stepping until exit from function xmlXPathEvalExpression,
which has no line number information.
Does this mean the source was removed after the emerge? If so how can I
keep the source.
Also I like the idea of using "/etc/portage/env/category/package" but
I'm not sure what to do since I don't have the env directory. Would I
just do a mkdir -p /etc/portage/env/dev-libs/ and create a file called
libxml2 with CFLAGS="$CFLAGS -g2" in it?
Thanks all,
Dave
Sebastian Magri wrote:
You can use the "/etc/portage/env/category/package" to declare environment
variables for specific packages...
2008/5/25 Erik Ruotsalainen <[EMAIL PROTECTED]>:
On Sat, May 24, 2008 at 10:02:50AM +0000, dhk wrote:
How can I modify the CFLAGS before emerging a package? I want to add
-g2 to the compile of libxml2 so I can step through their functions. If
I add -g2 to CFLAGS in make.conf it will do it for all packages which is
not what I want.
Thanks,
Dave
--
[email protected] mailing list
Same way as with USE flags, I think.
# CFLAGS="-g2" emerge libxml2
- aegis
--
[email protected] mailing list
--
[email protected] mailing list