gnu: Add libffi-pic.

* gnu/packages/libffi.scm (libffi-pic): New variable.

Change-Id: I173b0f49c71ad8103285f52cb0d1968bc351d4b3
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Laura Kirsch 2025-09-22 05:24:26 +02:00 committed by Sharlatan Hellseher
parent 1dab0f01bb
commit 8393b45b3d
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -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"))))))