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"