From e8492940a5f8320705d7b24732a89f670f506cee Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Fri, 30 Oct 2020 18:12:42 +0100 Subject: [PATCH] Add -fPIC compiler flag for Redhat/Fedora/CentOS Fixes #573 --- dist/unix/strawberry.spec.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dist/unix/strawberry.spec.in b/dist/unix/strawberry.spec.in index ec4878ddd..ed78d9a69 100644 --- a/dist/unix/strawberry.spec.in +++ b/dist/unix/strawberry.spec.in @@ -107,6 +107,9 @@ Features: %setup -qn %{name}-@STRAWBERRY_VERSION_PACKAGE@ %build +%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos} + export CXXFLAGS="-fPIC $RPM_OPT_FLAGS" +%endif %{cmake} -DCMAKE_BUILD_TYPE:STRING=Release %if 0%{?centos} || 0%{?mageia} %make_build