Hardened builds

Rex Dieter rdieter at math.unl.edu
Wed Feb 25 16:53:52 UTC 2015


Mamoru TASAKA wrote:

> 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?

that version works for me

-- Rex



More information about the devel mailing list