1 |
On Sunday 24 September 2006 22:53, Simon Stelling wrote: |
2 |
|
3 |
> per package env vars are supported through the base profile.bashrc. You |
4 |
> don't have to clutter /etc/portage/bashrc, you can just do e.g. |
5 |
> |
6 |
> cat > /etc/portage/env/app-foo/bar << EOF |
7 |
> CFLAGS="-O -march=k8 -pipe" |
8 |
> CXXFLAGS="${CFLAGS}" |
9 |
> EOF |
10 |
> |
11 |
> And it will set C(XX)FLAGS for app-foo/bar based on that. |
12 |
> /etc/portage/env/app-foo/bar-1.0 and /etc/portage/env/app-foo/bar-1.0-r1 |
13 |
> would also work. |
14 |
|
15 |
Impressive! One question: will the flags set here override those in |
16 |
portage's environment, or supplement them? In other words, can I switch |
17 |
flags off this way, or only on? |
18 |
|
19 |
-- |
20 |
Rgds |
21 |
Peter |
22 |
-- |
23 |
gentoo-amd64@g.o mailing list |