Yes, it's a way to do it, also you can create a file with the options as "/etc/portage/env/options" and then simlink to "/etc/portage/env/category/package"...
This way you will always emerge this package with the settings declared in the environment dir, it's also usefull so made some optimizations over especific packages without affect the rest of the system, or when a package needs especial values in environment variables as LC_ALL, i.e. ghc-6.8... 2008/5/25 dhk <[EMAIL PROTECTED]>: > 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 > > -- En el pasado creímos que se nos acababa el petróleo, pero en realidad lo que se nos acababan eran las IDEAS. Gentoo/* (Linux #455615) 53:04:4e:b5:f9:7e:4a:fb:66:a2:19:12:da:d5:97:f8 8A3A C955 715D D88A 87CD E21F F827 ADD7 F589 B4A4 Sebastian Magri (sebasmagri) <[EMAIL PROTECTED]>

