public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Checking if a package respects LDFLAGS
@ 2017-09-30 17:03 Keri Harris
  2017-09-30 18:05 ` Andreas K. Huettel
  0 siblings, 1 reply; 5+ messages in thread
From: Keri Harris @ 2017-09-30 17:03 UTC (permalink / raw
  To: gentoo-dev

Hi,

Is there a recommended method for testing if a package respects LDFLAGS?

Arch testers are encouraged to add -Wl,--hash-style=gnu to LDFLAGS 
[1],[2] and portage uses scanelf to check for .hash sections. However it 
appears that ld defaults to using a .gnu.hash section:

$ touch test.c
$ gcc -o libtest.so -shared test.c
$ scanelf -qyRF '#k%p' -k .hash libtest.so
$ scanelf -qyRF '#k%p' -k .gnu.hash libtest.so
libtest.so

Maybe I'm missing something obvious.


Thanks

Keri

[1] https://wiki.gentoo.org/wiki/Project:AMD64_Arch_Testers
[2] https://wiki.gentoo.org/wiki/Project:X86/Arch_Testers_FAQ


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-10-12 10:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-30 17:03 [gentoo-dev] Checking if a package respects LDFLAGS Keri Harris
2017-09-30 18:05 ` Andreas K. Huettel
2017-09-30 21:49   ` Robin H. Johnson
2017-10-01  7:02     ` Michał Górny
2017-10-12 10:56       ` Sergei Trofimovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox