Gentoo Archives: gentoo-dev

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Checking if a package respects LDFLAGS
Date: Sat, 30 Sep 2017 21:49:45
Message-Id: robbat2-20170930T214559-550929612Z@orbis-terrarum.net
In Reply to: Re: [gentoo-dev] Checking if a package respects LDFLAGS by "Andreas K. Huettel"
1 On Sat, Sep 30, 2017 at 08:05:50PM +0200, Andreas K. Huettel wrote:
2 > Am Samstag, 30. September 2017, 19:03:59 CEST schrieb Keri Harris:
3 > > Hi,
4 > >
5 > > Is there a recommended method for testing if a package respects LDFLAGS?
6 > >
7 > > Arch testers are encouraged to add -Wl,--hash-style=gnu to LDFLAGS
8 > > [1],[2] and portage uses scanelf to check for .hash sections. However it
9 > > appears that ld defaults to using a .gnu.hash section:
10 > That test used to work, but it's broken now. We need a new one.
11 How about something similar to Fedora's binary annotations work, or
12 injecting a .note.gentoo section into binaries (containing literal
13 C/CXX/LDFLAGS would be useful).
14
15 --
16 Robin Hugh Johnson
17 Gentoo Linux: Dev, Infra Lead, Foundation Asst. Treasurer
18 E-Mail : robbat2@g.o
19 GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
20 GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136

Replies

Subject Author
Re: [gentoo-dev] Checking if a package respects LDFLAGS "Michał Górny" <mgorny@g.o>