From 025b6c75da86de65711b4cc6f358525bf44b9682 Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Wed, 9 Oct 2024 11:45:24 +0200 Subject: [PATCH] Remove %elif no which is unsupported on RHEL8 --- llvm.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm.spec b/llvm.spec index d8d073c..3c16260 100644 --- a/llvm.spec +++ b/llvm.spec @@ -976,9 +976,11 @@ popd %if %{with snapshot_build} %global cmake_config_args %{cmake_config_args} -DLLVM_VERSION_SUFFIX="%{llvm_snapshot_version_suffix}" -%elif %{without compat_build} +%else +%if %{without compat_build} %global cmake_config_args %{cmake_config_args} -DLLVM_VERSION_SUFFIX='' %endif +%endif %ifarch x86_64 %global cmake_config_args %{cmake_config_args} -DCMAKE_SHARED_LINKER_FLAGS="$LDFLAGS -Wl,-z,cet-report=error"