public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/polyml] rawhide: BR libffi-devel only on bytecode architectures
@ 2026-07-15  1:24 Jerry James
  0 siblings, 0 replies; only message in thread
From: Jerry James @ 2026-07-15  1:24 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/polyml
Branch : rawhide
Commit : eb518e6a3f34c9dec08dda3d9cba6f3491b2ea02
Author : Jerry James <loganjerry@gmail.com>
Date   : 2026-07-14T19:24:26-06:00
Stats  : +7/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/polyml/c/eb518e6a3f34c9dec08dda3d9cba6f3491b2ea02?branch=rawhide

Log:
BR libffi-devel only on bytecode architectures

---
diff --git a/polyml.spec b/polyml.spec
index e2faa78..dd87c9c 100644
--- a/polyml.spec
+++ b/polyml.spec
@@ -18,9 +18,13 @@ ExcludeArch:    %{ix86}
 
 BuildRequires:  gcc-c++
 BuildRequires:  gmp-devel
-BuildRequires:  libffi-devel
 BuildRequires:  make
 
+%ifnarch %{x86_64} %{arm64}
+# Required for the bytecode interpreter
+BuildRequires:  libffi-devel
+%endif
+
 Requires:       gcc-c++
 Requires:       polyml-libs%{?_isa} = %{version}-%{release}
 
@@ -81,7 +85,9 @@ sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
 # - build with extension_cflags instead of build_cflags
 extflags=$(sed 's/[[:space:]]*$//' <<< '%{extension_cflags}')
 sed -e 's/-Wl,-rpath,\${LIBDIR} //'\
+%ifarch %{x86_64} %{arm64}
     -e 's/-lffi //;s/-lgmp //' \
+%endif
     -e "s/^\(CFLAGS=\).*/\1\"-O2 -pipe -fno-strict-aliasing $extflags\"/" \
     -i polyc
 

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

only message in thread, other threads:[~2026-07-15  1:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-15  1:24 [rpms/polyml] rawhide: BR libffi-devel only on bytecode architectures Jerry James

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