public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/freeimage] epel10.3: ppc64 and ppc64le need -fPIC (rhbz#1272048)
@ 2026-11-18  2:41 Karsten Hopp
  0 siblings, 0 replies; only message in thread
From: Karsten Hopp @ 2026-11-18  2:41 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/freeimage
Branch : epel10.3
Commit : 7322eb5e74825838328503f97acf74b892576ee7
Author : Karsten Hopp <karsten@redhat.com>
Date   : 2015-10-15T13:08:13+02:00
Stats  : +9/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/freeimage/c/7322eb5e74825838328503f97acf74b892576ee7?branch=epel10.3

Log:
ppc64 and ppc64le need -fPIC (rhbz#1272048)

---
diff --git a/freeimage.spec b/freeimage.spec
index c49a26d..1e28f0c 100644
--- a/freeimage.spec
+++ b/freeimage.spec
@@ -3,7 +3,7 @@
 
 Name:           freeimage
 Version:        3.17.0
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Multi-format image decoder library
 
 # freeimage is tripple-licensed, see
@@ -87,8 +87,13 @@ done
 %build
 sh ./gensrclist.sh
 sh ./genfipsrclist.sh
+%ifarch %{power64}
+make -f Makefile.gnu %{?_smp_mflags} CFLAGS="%{optflags} -fPIC" CXXFLAGS="%{optflags} -fPIC" LDFLAGS="%{__global_ldflags}"
+make -f Makefile.fip %{?_smp_mflags} CFLAGS="%{optflags} -fPIC" CXXFLAGS="%{optflags} -fPIC" LDFLAGS="%{__global_ldflags}"
+%else
 make -f Makefile.gnu %{?_smp_mflags} CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}"
 make -f Makefile.fip %{?_smp_mflags} CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}"
+%endif
 
 pushd Wrapper/FreeImagePlus/doc
 doxygen FreeImagePlus.dox
@@ -141,6 +146,9 @@ ldconfig -n %{buildroot}%{_libdir}
 
 
 %changelog
+* Thu Oct 15 2015 Karsten Hopp <karsten@redhat.com> 3.17.0-3
+- ppc64 and ppc64le need -fPIC (rhbz#1272048)
+
 * Wed Sep 30 2015 Sandro Mani <manisandro@gmail.com> - 3.17.0-2
 - Fix under-linked library
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-18  2:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-18  2:41 [rpms/freeimage] epel10.3: ppc64 and ppc64le need -fPIC (rhbz#1272048) Karsten Hopp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox