From d168c1664fae27d134df8c4ab0a1e1e891ea9b1f Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 16 Jan 2024 09:36:17 +0100 Subject: [PATCH] Only use cet-report=error on x86_64 i386 CET support has been removed from glibc. Only check it for x86_64. This is a cherry-pick of https://src.fedoraproject.org/rpms/llvm/c/fefb87d583aeab76b11475cc2a8e69574b0a09bc?branch=upstream-snapshot --- build.spec.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.spec.inc b/build.spec.inc index b56c13a..ec7970b 100644 --- a/build.spec.inc +++ b/build.spec.inc @@ -189,7 +189,9 @@ cd llvm -DLLVM_INSTALL_SPHINX_HTML_DIR=%{_pkgdocdir}/html \ -DSPHINX_EXECUTABLE=%{_bindir}/sphinx-build-3 \ -DLLVM_INCLUDE_BENCHMARKS=OFF \ +%ifarch x86_64 -DCMAKE_SHARED_LINKER_FLAGS="$LDFLAGS -Wl,-z,cet-report=error" \ +%endif %if %{without snapshot_build} -DLLVM_UNITTEST_LINK_FLAGS="-Wl,-plugin-opt=O0" %endif