Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: Add --hash-style=gnu to LDFLAGS
Date: Sat, 14 Aug 2010 04:14:45
Message-Id: AANLkTikmfGRDCizJeHEO2Tm-kQKg8JJqS2j-Gom7Vr_c@mail.gmail.com
In Reply to: [gentoo-dev] Re: Add --hash-style=gnu to LDFLAGS by Ryan Hill
1 On Fri, Aug 13, 2010 at 11:43 PM, Ryan Hill wrote:
2 > On Fri, 13 Aug 2010 18:11:42 +0300 Markos Chandras wrote:
3 >> Could someone guide me to add --hash-style=gnu to default/linux/amd64/dev
4 >> profile? I don't want to break anything
5 >
6 > The thing is, you can't right now. :D  LDFLAGS don't stack, meaning you'd
7 > have to do something like
8 >
9 > --- targets/developer/make.defaults     26 Jul 2010 19:15:05 -0000      1.9
10 > +++ targets/developer/make.defaults     14 Aug 2010 03:31:18 -0000
11 > @@ -12,3 +12,6 @@
12 >
13 >  # Log eqawarn messages
14 >  PORTAGE_ELOG_CLASSES="${PORTAGE_ELOG_CLASSES} qa"
15 > +
16 > +# Help find packages not respecting LDFLAGS
17 > +LDFLAGS="-Wl,--hash-style=gnu ${LDFLAGS}"
18 >
19 >
20 > Which breaks boost-build (bug #293652).  That's why I suggested just putting
21 > a message in targets/developer/profile.bashrc (which is otherwise completely
22 > useless).
23
24 that's crap. fix the package or at least work around it:
25 LDFLAGS=`echo ${LDFLAGS}`
26
27 we shouldnt be forced to add random hacks throughout the tree because
28 of one or two random broken packages
29 -mike

Replies

Subject Author
[gentoo-dev] Re: Add --hash-style=gnu to LDFLAGS Ryan Hill <dirtyepic@g.o>