Re: _hardened_build not affecting libtool-compiled libraries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Dienstag, den 25.06.2013, 08:29 +0100 schrieb Richard W.M. Jones:
> On Mon, Jun 24, 2013 at 07:39:59PM -0400, Paul Wouters wrote:
> > On Mon, 24 Jun 2013, Richard W.M. Jones wrote:
> > 
> > >Note there is still a problem that an LDFLAGS hack was needed in the
> > >spec file, otherwise libtool (or something) eats the hardening LDFLAGS.
> > 
> > Too often Makefiles contain CFLAGS= / LDFLAGS=, instead of CFLAGS?= / LDFLAGS?=
> 
> It's using autotools.  The sources are linked from the bug report
> and here:
> 
> https://github.com/libguestfs/nbdkit/

Hi Rich!

Sorry, I faded away yesterday. I had an appointment with my new
sponsoree, so I was busy rest of the day.

The LDFLAGS-Hack in rpm-spec is needed because "libcrap" purges {C,
LD}FLAGS, which it thinks are not of use for the linker.  The
"-spec=..."-cli-switch from gcc is such a case.  The "-Wl,z,now"-flag is
expanded from such a gcc-spec, but libtool doesn't pass it, because of
the explained behaviour.

This is a, not fixed yet, bug in libtool know for years.
See: http://bit.ly/15Bnye5

Cheers,
  Björn

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux