| |
@@ -328,7 +328,9 @@
|
| |
# to verify they have real sections/symbols after LTO stripping. That
|
| |
# way we can detect installing an unusable .o/.a file. This is on the TODO
|
| |
# list for F34.
|
| |
- %_lto_cflags -flto -ffat-lto-objects
|
| |
+ %_gcc_lto_cflags -flto -ffat-lto-objects
|
| |
+ %_clang_lto_cflags -flto
|
| |
+ %_lto_cflags %{expand:%%{_%{toolchain}_lto_cflags}}
|
| |
|
| |
%_general_options -O2 %{?_lto_cflags} -fexceptions -g -grecord-gcc-switches -pipe
|
| |
%_warning_options -Wall -Werror=format-security
|
| |