summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-04-04 08:42:22 +0200
committerRemi Collet <remi@remirepo.net>2019-04-04 08:42:22 +0200
commit80357b2df1eb3c7c990930964a68c06400e3bea9 (patch)
treeaaf2b1eb94e6fc2065255b3120f0ef19dd0ab575
parentabac16440e7dd7e9874c9f81547ba25c757268b0 (diff)
re-add -fPIC build flag
-rw-r--r--openjpeg2-static.spec8
1 files changed, 7 insertions, 1 deletions
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 <remi@remirepo.net> - 2.3.1-2
+- re-add -fPIC build flag
+
* Wed Apr 3 2019 Remi Collet <remi@remirepo.net> - 2.3.1-1
- Update to 2.3.1 from Fedora