1 |
2008-07-16 18:38:47 Doug Goldstein napisał(a): |
2 |
> Doug Goldstein wrote: |
3 |
> > all, |
4 |
> > |
5 |
> > I'm at the point that -Wl,-O1 appears to be successful. It's time to |
6 |
> > toss on -Wl,--hash-style=gnu. The issue is that we need glibc 2.5 or |
7 |
> > higher and not mips. So one solution is to put the following: |
8 |
> > |
9 |
> > default/linux: LDFLAGS="-Wl,-O1,--hash-style=gnu" |
10 |
> > default/linux/mips: LDFLAGS="-Wl,-O1" |
11 |
> > |
12 |
> > However, this means we'll have to put a has_version check in |
13 |
> > profile.bashrc of default/linux, which seems a bit cludgy.. |
14 |
> > |
15 |
> > Any suggestions? Comments? |
16 |
> Given the benefits vs the annoyances of not all platforms supporting it |
17 |
> and requiring 2 has_version checks in profile.bashrc. |
18 |
|
19 |
has_version checks can be called only once per package: |
20 |
|
21 |
if [[ "${EBUILD_PHASE}" == "setup" ]] ; then |
22 |
if has_version "<sys-libs/glibc-2.5" || has_version "<sys-devel/binutils-2.17.50.0.2" ; then |
23 |
LDFLAGS="${LDFLAGS//-Wl,--hash-style=gnu/}" |
24 |
fi |
25 |
fi |
26 |
|
27 |
-- |
28 |
Arfrever Frehtes Taifersar Arahesis |