FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 05-24-2008, 10:02 AM
dhk
 
Default Setting CFLAGS for a single build

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
--
gentoo-user@lists.gentoo.org mailing list
 
Old 05-24-2008, 02:10 PM
Erik Ruotsalainen
 
Default Setting CFLAGS for a single build

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
> --
> gentoo-user@lists.gentoo.org mailing list
>

Same way as with USE flags, I think.

# CFLAGS="-g2" emerge libxml2

- aegis
--
gentoo-user@lists.gentoo.org mailing list
 
Old 05-24-2008, 02:12 PM
"Ricardo Saffi Marques"
 
Default 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
 
Old 05-24-2008, 02:14 PM
"Sebastian Magri"
 
Default Setting CFLAGS for a single build

You can use the "/etc/portage/env/category/package" to declare environment variables for specific packages...

2008/5/25 Erik Ruotsalainen <aegis@kapsi.fi>:

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

> --

> gentoo-user@lists.gentoo.org mailing list

>



Same way as with USE flags, I think.



# CFLAGS="-g2" emerge libxml2



- aegis

--

gentoo-user@lists.gentoo.org 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) <sebasmagri@gmail.com>
 

Thread Tools




All times are GMT. The time now is 01:44 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org