On Sat, Feb 2, 2019 at 7:02 AM Samuel Rakitničan <
srakitnican(a)fedoraproject.org> wrote:
$ rpm -E %optflags
-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
The only required one seems to be for "format-security"...
Right, -Werror is added by build script with debug option turned on that I forgot about.
Sorry for the noise.
> Thanks,
> Richard