Bugzilla – Bug 1142357
Default build flag not compatible with clang 8
Last modified: 2019-07-23 07:33:47 UTC
This is what I see: clang-8.0: error: unsupported argument '1' to option 'flto=' rpm --eval %optflags shows in fact: -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -flto=1 -g
I am not sure to which this bug belongs, `-flto` seems a new flag, maybe clang package has no support to it current? Anyway, please reassign if incorrect.
All packages are built with GCC. That is, if you insist building things with clang just do %define _lto_cflags %{nil} in your %build section.