Gentoo Archives: gentoo-user

From: Alex Schuster <wonko@×××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Setting CFLAGS for a single build
Date: Tue, 27 May 2008 13:40:20
Message-Id: 200805271540.10820.wonko@wonkology.org
In Reply to: Re: [gentoo-user] Setting CFLAGS for a single build by dhk
1 dhk writes:
2
3 > Does this mean the source was removed after the emerge? If so how can
4 > I keep the source.
5
6 Try adding "nostrip" to your FEATURES.
7
8 > Also I like the idea of using "/etc/portage/env/category/package" but
9 > I'm not sure what to do since I don't have the env directory. Would I
10 > just do a mkdir -p /etc/portage/env/dev-libs/ and create a file called
11 > libxml2 with CFLAGS="$CFLAGS -g2" in it?
12
13 I think so. This is new to me, too - I know about this /etc/portage/env/
14 stuff, but I thought it was only a suggestion, and that you have to
15 create a /etc/portage/bashrc by hand which evaluates stuff in there. But
16 it seems portage is already capable of that.
17
18 So, this should work:
19
20 CFLAGS="$CFLAGS -g2"
21 FEATURES="$FEATURES -nostrip"
22
23 Wonko
24 --
25 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Setting CFLAGS for a single build dhkuhl@×××××××××.net
Re: [gentoo-user] Setting CFLAGS for a single build dhk <dhkuhl@×××××××××.net>