1 |
Mon, Oct 01, 2007 at 04:31:42AM -0400 tarihinde, Mike Frysinger yazmış: |
2 |
> On Monday 01 October 2007, Ali Polatel wrote: |
3 |
> > Mon, Oct 01, 2007 at 01:06:42AM -0700 tarihinde, Donnie Berkholz yazmış: |
4 |
> > > On 07:46 Mon 01 Oct , Ali Polatel (hawking) wrote: |
5 |
> > > > 1.1 sys-auth/pam_chroot/pam_chroot-0.9.2.ebuild |
6 |
> > > > |
7 |
> > > > file : |
8 |
> > > > http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/pam_chroot/pam |
9 |
> > > >_chroot-0.9.2.ebuild?rev=1.1&view=markup plain: |
10 |
> > > > http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/pam_chroot/pam |
11 |
> > > >_chroot-0.9.2.ebuild?rev=1.1&content-type=text/plain |
12 |
> > > > |
13 |
> > > > LDFLAGS="$(raw-ldflags)" emake \ |
14 |
> > > > CC="$(tc-getCC)" LD="$(tc-getLD)" || die "emake failed" |
15 |
> > > |
16 |
> > > This reads really strangely to me. It's passing variables on both sides |
17 |
> > > of emake. Generally one would just pick a side (afterwards) and add |
18 |
> > > everything there. |
19 |
> > |
20 |
> > Well, here is the related part from Makefile: |
21 |
> > |
22 |
> > LDFLAGS := -x --shared $(LDFLAGS) |
23 |
> > |
24 |
> > emake LDFLAGS="$(raw-ldflags)" overrides that definition, |
25 |
> > emake LDFLAGS="-x --shared $(raw-ldflags)" works as expected, or my |
26 |
> > version, maybe I should add a note about it to the ebuild... |
27 |
> |
28 |
> assuming they actually need to prepend here, you could get upstream to write |
29 |
> it like so: |
30 |
> override LDFLAGS := -x --shared $(LDFLAGS) |
31 |
> |
32 |
> if prepending is not needed, then this could work just as well: |
33 |
> override LDFLAGS += -x --shared |
34 |
> |
35 |
> not sure how portable "override" is though ... |
36 |
|
37 |
This works, another idea is to put '-x --shared' somewhere else, maybe |
38 |
to the command line or to another variable. Options that are required to |
39 |
make the program work fine shouldn't be in variables that can be |
40 |
overridden imo. |
41 |
I'll talk to upstream about it. |
42 |
|
43 |
> -mike |
44 |
|
45 |
-- |
46 |
ali polatel (hawking) |