Copy CFLAGS to ASMFLAGs to enable CET in asm files
See here for the relevant equivalent of this change in Fedora:
8e1f53d786
Resolves: rhbz#2118567
This commit is contained in:
parent
6d49bbec71
commit
7a457315e6
@ -271,6 +271,9 @@ mv %{cmake_srcdir} cmake
|
|||||||
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
|
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
|
||||||
%endif
|
%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.
|
# force off shared libs as cmake macros turns it on.
|
||||||
%cmake -G Ninja \
|
%cmake -G Ninja \
|
||||||
-DBUILD_SHARED_LIBS:BOOL=OFF \
|
-DBUILD_SHARED_LIBS:BOOL=OFF \
|
||||||
|
Loading…
Reference in New Issue
Block a user