mirror of
https://github.com/andersrh/copr-andersrh.git
synced 2026-05-17 13:58:01 +00:00
KCFLAGS
This commit is contained in:
parent
eaf3f6b860
commit
3f0c80f8bb
1 changed files with 5 additions and 1 deletions
|
|
@ -65,7 +65,8 @@
|
|||
|
||||
%if %{_build_lto}
|
||||
# Define build environment variables to build the kernel with clang
|
||||
%define _lto_args CC=gcc CXX=g++ LD=ld.bfd
|
||||
%define _lto_args CC=gcc CXX=g++ LD=ld.bfd
|
||||
#KCFLAGS="-flto -ffat-lto-objects" KCPPFLAGS="-flto -ffat-lto-objects"
|
||||
%endif
|
||||
|
||||
%define _module_args KERNEL_UNAME=%{_kver} IGNORE_PREEMPT_RT_PRESENCE=1 SYSSRC=%{_builddir}/linux-%{_tarkver} SYSOUT=%{_builddir}/linux-%{_tarkver}
|
||||
|
|
@ -176,6 +177,9 @@ Patch13: %{_patch_src}/misc/nvidia/565/0005-nvkms-Sanitize-trim-ELD-produ
|
|||
|
||||
%if %{_build_lto}
|
||||
scripts/config -e LTO
|
||||
scripts/config -e LTO_GCC
|
||||
scripts/config -d LTO_CLANG
|
||||
scripts/config -d LTO_CLANG_THIN
|
||||
%endif
|
||||
|
||||
%if %{_build_minimal}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue