From ca1043d84ed90c324af65807cc7e665ba57fa6e29e5af992839cebd0212f5494 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 25 Sep 2022 18:34:19 +0000 Subject: [PATCH] - Force-add -fPIC under RHEL and derivatives OBS-URL: https://build.opensuse.org/package/show/server:mail/libvmime?expand=0&rev=34 --- libvmime.changes | 5 +++++ libvmime.spec | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/libvmime.changes b/libvmime.changes index 795bbe7..ca7718f 100644 --- a/libvmime.changes +++ b/libvmime.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Sep 25 18:34:03 UTC 2022 - Jan Engelhardt + +- Force-add -fPIC under RHEL and derivatives + ------------------------------------------------------------------- Sat Jun 11 14:40:34 UTC 2022 - Jan Engelhardt diff --git a/libvmime.spec b/libvmime.spec index 1446679..a3e1921 100644 --- a/libvmime.spec +++ b/libvmime.spec @@ -98,8 +98,6 @@ make book_pdf popd %endif -# for some reason I don't care researching in detail, CentOS8 dies with -# a PIC-related relocation error during cmake-configure. Hence forcing -fPIC. %cmake \ -DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \ -DINCLUDE_INSTALL_DIR:PATH="%_includedir" \ @@ -115,9 +113,9 @@ popd -DVMIME_BUILD_STATIC_LIBRARY:BOOL=OFF \ -DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" \ -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="$cf" \ - -DCMAKE_CXX_FLAGS:STRING="%{?centos_version:-fPIC} " \ + -DCMAKE_CXX_FLAGS:STRING="%{?redhat_version:-fPIC} %{?almalinux_version:-fPIC}" \ -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="$cf" \ - -DCMAKE_C_FLAGS:STRING="%{?centos_version:-fPIC} " \ + -DCMAKE_C_FLAGS:STRING="%{?redhat_version:-fPIC} %{?almalinux_version:-fPIC}" \ -DVMIME_BUILD_DOCUMENTATION:BOOL=OFF %cmake_build