diff --git a/llvm.spec b/llvm.spec index ffb4d4f..c471423 100644 --- a/llvm.spec +++ b/llvm.spec @@ -69,7 +69,7 @@ Name: %{pkg_name} Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}} -Release: 1%{?dist} +Release: 2%{?dist} Summary: The Low Level Virtual Machine License: NCSA @@ -231,6 +231,9 @@ mv %{cmake_srcdir} cmake %global optflags %(echo %{optflags} | sed 's/-g /-g1 /') %endif +# Copy CFLAGS into ASMFLAGS, so -fcf-protection is used when compiling assembly files. +export ASMFLAGS=$CFLAGS + # force off shared libs as cmake macros turns it on. %cmake -G Ninja \ -DBUILD_SHARED_LIBS:BOOL=OFF \ @@ -556,6 +559,9 @@ fi %endif %changelog +* Fri Nov 11 2022 Nikita Popov - 15.0.4-2 +- Copy CFLAGS to ASMFLAGs to enable CET in asm files + * Wed Nov 02 2022 Nikita Popov - 15.0.4-1 - Update to LLVM 15.0.4