1 |
On Monday 15 October 2007, Donnie Berkholz wrote: |
2 |
> On 18:33 Mon 15 Oct , Micheal Marineau (marineam) wrote: |
3 |
> > 1.1 app-emulation/xen/xen-3.1.1.ebuild |
4 |
> > |
5 |
> > file : |
6 |
> > http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/xen-3.1 |
7 |
> >.1.ebuild?rev=1.1&view=markup plain: |
8 |
> > http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/xen-3.1 |
9 |
> >.1.ebuild?rev=1.1&content-type=text/plain |
10 |
> > |
11 |
> > src_compile() { |
12 |
> > local myopt |
13 |
> > use debug && myopt="${myopt} debug=y" |
14 |
> > use pae && myopt="${myopt} pae=y" |
15 |
> > |
16 |
> > if use custom-cflags; then |
17 |
> > filter-flags -fPIE -fstack-protector |
18 |
> > else |
19 |
> > unset CFLAGS |
20 |
> > fi |
21 |
> > |
22 |
> > # Send raw LDFLAGS so that --as-needed works |
23 |
> > emake LDFLAGS="$(raw-ldflags)" -C xen ${myopt} || die "compile failed" |
24 |
> > } |
25 |
> > |
26 |
> > src_install() { |
27 |
> > local myopt |
28 |
> > use debug && myopt="${myopt} debug=y" |
29 |
> > use pae && myopt="${myopt} pae=y" |
30 |
> |
31 |
> The environment should be preserved across phases, so you shouldn't have |
32 |
> to repeat this stuff. |
33 |
|
34 |
"myopt" is declared "local" |
35 |
-mike |