ALT Linux Bugzilla – #34162
check that things have been compiled with %optflags
Last modified: 2018-01-07 20:11:19
You need to
before you can comment on or make changes to this bug.
A BRP check that would check that the resulting files have been compiled with
flags which include all %optflags would help to see which packages have
problems with honoring %optflags.
This would warn the maintainers that their attention is needed to fix this
before someone changes %optflags to rebuild packages differently en masse (on
another platform or with a different mechanism for passing %optflags to the
compiler as in https://bugzilla.altlinux.org/show_bug.cgi?id=34161 ).
bircoph@ had this idea and suggested to use a special GCC flag to record the
actually used flags in the resulting files.
(In reply to comment #0)
> bircoph@ had this idea and suggested to use a special GCC flag to record the
> actually used flags in the resulting files.
The option is called -frecord-gcc-switches; it adds .GCC.command.line section
in each generated ELF file. These sections have the same type (PROGBITS) and
flags (MERGE, STRINGS) as .comment sections. Like .comment sections,
.GCC.command.line sections are moved to .debug files by debugedit.
Sun Jan 07 2018 Dmitry V. Levin <ldv@altlinux> 4.0.4-alt107
- compare_deps: fixed a bug in handling epochs.
+ %optflags_core: added -frecord-gcc-switches (see: #34162);
+ %make_build: implemented as a simple command (closes: #34237).
- genCpioListAndHeader: implemented remapping of device and inode numbers
(by Vladimir D. Seleznev and me; closes: #34398).