Default to non-pie, fix rhbz#2134146

See also https://src.fedoraproject.org/rpms/clang/pull-request/183

Resolves: rhbz#2118319
This commit is contained in:
Nikita Popov 2022-10-17 12:39:51 +02:00 committed by Konrad Kleine
parent 7006dbf8d5
commit 23c095df17

View File

@ -49,7 +49,7 @@
Name: %pkg_name Name: %pkg_name
Version: %{clang_version}%{?rc_ver:~rc%{rc_ver}} Version: %{clang_version}%{?rc_ver:~rc%{rc_ver}}
Release: 1%{?dist} Release: 2%{?dist}
Summary: A C language family front-end for LLVM Summary: A C language family front-end for LLVM
License: NCSA License: NCSA
@ -360,12 +360,10 @@ mv ../clang-%{compat_ver}.src ../clang
%endif %endif
# TODO: Drop the HAVE_CXX_ATOMICS64_WITHOUT_LIB once clang15 is in the buildroot. It looks like # We set CLANG_DEFAULT_PIE_ON_LINUX=OFF to match the default used by Fedora's GCC.
# previously clang emitted __atomic_load for std::atomic<double>, which is not detected by cmake. # See https://bugzilla.redhat.com/show_bug.cgi?id=2134146
%cmake -G Ninja \ %cmake -G Ninja \
%ifarch %ix86 -DCLANG_DEFAULT_PIE_ON_LINUX=OFF
-DHAVE_CXX_ATOMICS64_WITHOUT_LIB=OFF \
%endif
-DLLVM_PARALLEL_LINK_JOBS=1 \ -DLLVM_PARALLEL_LINK_JOBS=1 \
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \ -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
@ -672,6 +670,9 @@ mv ./libclang-cpp.so.%{compat_maj_ver} "$compat_lib"
%endif %endif
%changelog %changelog
* Mon Oct 17 2022 Nikita Popov <npopov@redhat.com> - 15.0.1-2
- Default to non-pie, fix rhbz#2134146
* Mon Sep 26 2022 Konrad Kleine <kkleine@redhat.com> - 15.0.1-1 * Mon Sep 26 2022 Konrad Kleine <kkleine@redhat.com> - 15.0.1-1
- Update to 15.0.1 - Update to 15.0.1