Bug 1142357 - Default build flag not compatible with clang 8
Default build flag not compatible with clang 8
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: Richard Biener
E-mail List
Depends on:
  Show dependency treegraph
Reported: 2019-07-22 12:38 UTC by Luigi Baldoni
Modified: 2019-07-23 07:33 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Luigi Baldoni 2019-07-22 12:38:16 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
Comment 1 Alynx Zhou 2019-07-23 01:43:16 UTC
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.
Comment 2 Richard Biener 2019-07-23 07:33:47 UTC
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.