~ruther/guix-local

8393b45b3db7a775a73ae78c1b86f5f537fea441 — Laura Kirsch 6 months ago 1dab0f0
gnu: Add libffi-pic.

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

Change-Id: I173b0f49c71ad8103285f52cb0d1968bc351d4b3
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 8 insertions(+), 0 deletions(-)

M gnu/packages/libffi.scm
M gnu/packages/libffi.scm => gnu/packages/libffi.scm +8 -0
@@ 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"))))))