Hardened builds

Mamoru TASAKA mtasaka at fedoraproject.org
Wed Feb 25 01:26:06 UTC 2015


Hello:

> I've got a package that is currently failing to build in Rawhide.  It
> has a home-brewed garbage collector inside, and it appears the GC is
> confused about which objects are on the stack, and which are on the
> heap.  I want to try building without the hardening flags to see if
> that has something to do with the problem.  According to
> https://fedorahosted.org/fesco/ticket/1384 the way to do this is to
> put:
> 
> %global _hardened_build 0
> 
> at the top of the spec file.  But that doesn't work with a local mock
> build.  I still see -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 in
> the compiler flags and -specs=/usr/lib/rpm/redhat/redhat-hardened-ld
> in the linker flags.  

Does
%undefine _hardened_build
help?

Regards,
Mamoru




More information about the devel mailing list