Copy CFLAGS to ASMFLAGs to enable CET in asm files

See here for the relevant equivalent of this change in Fedora:

8e1f53d786?branch=rawhide

Resolves: rhbz#2118567
This commit is contained in:
Konrad Kleine 2022-12-05 16:54:25 +01:00
parent 6d49bbec71
commit 7a457315e6
1 changed files with 3 additions and 0 deletions

View File

@ -271,6 +271,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 \