Setting CFLAGS for a single build
On Sat, May 24, 2008 at 7:02 AM, dhk <dhkuhl@optonline.net> 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.
It won't be persistent (like things you put inside /etc/portage/package.{keywords,mask,unmask,use} but an idea would be:
root@machine ~ $ CFLAGS="$CFLAGS -g2" emerge whatever_package
--
Ricardo Saffi Marques
Laboratório de Administração e Segurança de Sistemas (LAS/IC)
Universidade Estadual de Campinas (UNICAMP)
Cell: +55 (19) 8128-0435
Skype: ricardo_saffi_marques
Website: http://www.rsaffi.com
|