Copy CFLAGS to ASMFLAGs to enable CET in asm files
This commit is contained in:
parent
3c595192e2
commit
8e1f53d786
@ -69,7 +69,7 @@
|
|||||||
|
|
||||||
Name: %{pkg_name}
|
Name: %{pkg_name}
|
||||||
Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}
|
Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: The Low Level Virtual Machine
|
Summary: The Low Level Virtual Machine
|
||||||
|
|
||||||
License: NCSA
|
License: NCSA
|
||||||
@ -231,6 +231,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 \
|
||||||
@ -556,6 +559,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 11 2022 Nikita Popov <npopov@redhat.com> - 15.0.4-2
|
||||||
|
- Copy CFLAGS to ASMFLAGs to enable CET in asm files
|
||||||
|
|
||||||
* Wed Nov 02 2022 Nikita Popov <npopov@redhat.com> - 15.0.4-1
|
* Wed Nov 02 2022 Nikita Popov <npopov@redhat.com> - 15.0.4-1
|
||||||
- Update to LLVM 15.0.4
|
- Update to LLVM 15.0.4
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user