On 11/13/19 2:37 AM, Martin Liška wrote:
>>
>> As Nick also mentioned many times, -grecord-gcc-switches is in DWARF
>> and this causes a great disadvantage: it gets stripped out.
> 
> Well, that's still something I disagree. I bet RedHat is similarly to
> openSUSE also building all packages with a debug info, which
> is later stripped and put into a foo-devel package. That's why one can
> easily read the compile options from these sub-packages.
> My motivation is to write a rpm linter check that will verify that all
> object files really used flags that we expect.
Right.  We inject -g into the default build flags.  We extract the
resultant debug info into a .debuginfo RPM.

The original motivation behind annobin was to verify how well the
injection mechanism worked.  We originally wanted to do something like
what Egeyar has done, but it's been proposed in the past and was highly
controversial.  Rather than fight that problem or have a Red Hat
specific patch, we built annobin/annocheck which (IMHO) handles this
kind of need quite well.


Jeff

Reply via email to