From 80357b2df1eb3c7c990930964a68c06400e3bea9 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 4 Apr 2019 08:42:22 +0200 Subject: re-add -fPIC build flag --- openjpeg2-static.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/openjpeg2-static.spec b/openjpeg2-static.spec index e8266b4..7ee2dba 100644 --- a/openjpeg2-static.spec +++ b/openjpeg2-static.spec @@ -8,7 +8,7 @@ Name: openjpeg2-static Version: 2.3.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: C-Library for JPEG 2000 # windirent.h is MIT, the rest is BSD @@ -216,6 +216,9 @@ rm -rf thirdparty mkdir %{_target_platform} pushd %{_target_platform} +# Needed for the static library +export CFLAGS="%{optflags} -fPIC" + # TODO: Consider # -DBUILD_JPIP_SERVER=ON -DBUILD_JAVA=ON %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DOPENJPEG_INSTALL_LIB_DIR=%{_lib} \ @@ -335,6 +338,9 @@ make test -C %{_target_platform} %changelog +* Thu Apr 4 2019 Remi Collet - 2.3.1-2 +- re-add -fPIC build flag + * Wed Apr 3 2019 Remi Collet - 2.3.1-1 - Update to 2.3.1 from Fedora -- cgit