Gentoo Archives: gentoo-dev

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Checking if a package respects LDFLAGS
Date: Thu, 12 Oct 2017 10:57:10
Message-Id: 20171012115657.5d76b6ab@sf
In Reply to: Re: [gentoo-dev] Checking if a package respects LDFLAGS by "Michał Górny"
On Sun, 01 Oct 2017 09:02:19 +0200
Michał Górny <mgorny@g.o> wrote:

> W dniu sob, 30.09.2017 o godzinie 21∶49 +0000, użytkownik Robin H. > Johnson napisał: > > On Sat, Sep 30, 2017 at 08:05:50PM +0200, Andreas K. Huettel wrote: > > > Am Samstag, 30. September 2017, 19:03:59 CEST schrieb Keri Harris: > > > > 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: > > > > > > That test used to work, but it's broken now. We need a new one. > > > > How about something similar to Fedora's binary annotations work, or > > injecting a .note.gentoo section into binaries (containing literal > > C/CXX/LDFLAGS would be useful). > > > > Portage team is always happy to accept any patch for this.
Tracking bug: https://bugs.gentoo.org/455232 -- Sergei