- Force-add -fPIC under RHEL and derivatives

OBS-URL: https://build.opensuse.org/package/show/server:mail/libvmime?expand=0&rev=34
This commit is contained in:
Jan Engelhardt 2022-09-25 18:34:19 +00:00 committed by Git OBS Bridge
parent 80bd01b4f7
commit ca1043d84e
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Sep 25 18:34:03 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Force-add -fPIC under RHEL and derivatives
-------------------------------------------------------------------
Sat Jun 11 14:40:34 UTC 2022 - Jan Engelhardt <jengelh@inai.de>

View File

@ -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