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: Tue, 10 Aug 2010 20:09:46
Message-Id: AANLkTimaRMFfsHdV43=Q2MKwZK6cPZo8Szn9z-bGJoYn@mail.gmail.com
In Reply to: Re: [gentoo-dev] Re: Add --hash-style=gnu to LDFLAGS by Francesco R
1 On Tue, Aug 10, 2010 at 2:40 PM, Francesco R wrote:
2 > I don't know how --hash-style=gnu is used to check for LDFLAGS, so this may
3 > be OT.
4
5 it looks to see what ELFs still have a .hash section
6
7 > On my personal and _breakable_ desktop I do use
8 > LDFLAGS="${LDFLAGS} -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
9 > -Wl,--sort-common -Wl,--build-id"
10 > in make.conf.
11 > Would this two liners tell me which package who install binaries in /usr/bin
12 > does not respect ldflags?
13 > # for i in /usr/bin/* ; do eu-unstrip -n -e  $i ; done &> build-id.txt
14 > # qfile $(grep '0x[0-9]*+0x[0-9]* - ' build-id.txt | awk '{ print $3 }')
15
16 way more complicated than necessary. simply do:
17 scanelf -qyRk.hash -F'%F#k' /usr/bin/
18
19 this is after all what portage is using now
20 -mike