mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 08:52:56 +02:00
libffi: make this work correctly on musl; patch via Alpine.
See http://bugs.alpinelinux.org/issues/4275
This commit is contained in:
parent
195aaf0811
commit
96bf3cf8bf
2 changed files with 14 additions and 1 deletions
13
srcpkgs/libffi/patches/libffi-fix-define-for-musl.patch
Normal file
13
srcpkgs/libffi/patches/libffi-fix-define-for-musl.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
http://bugs.alpinelinux.org/issues/4275
|
||||
|
||||
--- src/closures.c.orig
|
||||
+++ src/closures.c
|
||||
@@ -34,7 +34,7 @@
|
||||
#include <ffi_common.h>
|
||||
|
||||
#if !FFI_MMAP_EXEC_WRIT && !FFI_EXEC_TRAMPOLINE_TABLE
|
||||
-# if __gnu_linux__ && !defined(__ANDROID__)
|
||||
+# if __linux__ && !defined(__ANDROID__)
|
||||
/* This macro indicates it may be forbidden to map anonymous memory
|
||||
with both write and execute permission. Code compiled when this
|
||||
option is defined will attempt to map such pages once, but if it
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'libffi'
|
||||
pkgname=libffi
|
||||
version=3.2.1
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
configure_args="--includedir=/usr/include --with-pic"
|
||||
short_desc="Library supporting Foreign Function Interfaces"
|
||||
|
|
Loading…
Add table
Reference in a new issue