1 |
On L, 2008-07-26 at 03:39 +0300, Nikos Chantziaras wrote: |
2 |
> Fortunately, the majority of ebuilds/packages are honoring LDFLAGS. Of |
3 |
> course it's kinda difficult to always check if a package honors it or |
4 |
> not. But it's a good idea to file a bug for every package that does not |
5 |
> honor it (without a reason). |
6 |
|
7 |
I guess as many are using it to pass --hash-style=gnu in addition to |
8 |
other things[1], an easy way to find out which don't honor it out of |
9 |
your installed packages is to scan for ELF files that contain the .hash |
10 |
ELF section in addition to .gnu.hash ELF section. |
11 |
|
12 |
Something through |
13 |
scanelf -q -k .hash <path> |
14 |
outputting anything or not could be used to determine if the section |
15 |
exists or not. I'm sure there are better ways. |
16 |
|
17 |
This doesn't work for packages that don't ship ELF files, but ld works |
18 |
on ELF files, so those that don't use ELF files shouldn't really care if |
19 |
LDFLAGS is honored or not... |
20 |
|
21 |
Maybe this gives some ideas to someone to write a proper QA script, or |
22 |
point us all to an already existing almighty script or tool that does |
23 |
just that. |
24 |
|
25 |
-- |
26 |
Mart Raudsepp |
27 |
Gentoo Developer |
28 |
Mail: leio@g.o |
29 |
Weblog: http://planet.gentoo.org/developers/leio |