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