From 4e042078712e231ec416ad49812c12f685e34bf0 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 13 Oct 2022 09:59:16 +0200 Subject: [PATCH] Default to non-pie, fix rhbz#2134146 --- clang.spec | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/clang.spec b/clang.spec index a26c41e..5cb2784 100644 --- a/clang.spec +++ b/clang.spec @@ -41,7 +41,7 @@ Name: %pkg_name Version: %{clang_version}%{?rc_ver:~rc%{rc_ver}} -Release: 4%{?dist} +Release: 5%{?dist} Summary: A C language family front-end for LLVM License: NCSA @@ -318,12 +318,9 @@ sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@//g' test/lit.cfg.py %define _find_debuginfo_dwz_opts %{nil} %endif -# TODO: Drop the HAVE_CXX_ATOMICS64_WITHOUT_LIB once clang15 is in the buildroot. It looks like -# previously clang emitted __atomic_load for std::atomic, which is not detected by cmake. +# We set CLANG_DEFAULT_PIE_ON_LINUX=OFF to match the default used by Fedora's GCC. %cmake -G Ninja \ -%ifarch %ix86 - -DHAVE_CXX_ATOMICS64_WITHOUT_LIB=OFF \ -%endif + -DCLANG_DEFAULT_PIE_ON_LINUX=OFF \ -DLLVM_PARALLEL_LINK_JOBS=1 \ -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ @@ -607,6 +604,9 @@ false %endif %changelog +* Thu Oct 13 2022 Nikita Popov - 15.0.0-5 +- Default to non-pie, fix rhbz#2134146 + * Wed Oct 05 2022 sguelton@redhat.com - 15.0.0-4 - Package clang-tidy headers in clang-tools-extra-devel, fix rhbz#2123479