guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 8393b45b3db7a775a73ae78c1b86f5f537fea441
Author: Laura Kirsch <[email protected]>
AuthorDate: Mon Sep 22 05:24:26 2025 +0200
gnu: Add libffi-pic.
* gnu/packages/libffi.scm (libffi-pic): New variable.
Change-Id: I173b0f49c71ad8103285f52cb0d1968bc351d4b3
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/libffi.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/libffi.scm b/gnu/packages/libffi.scm
index 0ae53423b1..19842a9e9a 100644
--- a/gnu/packages/libffi.scm
+++ b/gnu/packages/libffi.scm
@@ -257,3 +257,11 @@ from Ruby code. Moreover, a Ruby-FFI extension works
without changes on Ruby
and JRuby.")
(home-page "https://wiki.github.com/ffi/ffi")
(license bsd-3)))
+
+;; pypy needs libffi compiled with -fPIC for some reason
+(define-public libffi-pic
+ (hidden-package
+ (package/inherit libffi
+ (arguments
+ `(#:configure-flags '("--enable-portable-binary"
+ "--without-gcc-arch" "--with-pic"))))))