aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-support/libffi/libffi/0001-libffi-Support-musl-x32-build.patch44
-rw-r--r--meta/recipes-support/libffi/libffi_3.2.1.bb1
2 files changed, 45 insertions, 0 deletions
diff --git a/meta/recipes-support/libffi/libffi/0001-libffi-Support-musl-x32-build.patch b/meta/recipes-support/libffi/libffi/0001-libffi-Support-musl-x32-build.patch
new file mode 100644
index 00000000000..c29c8978103
--- /dev/null
+++ b/meta/recipes-support/libffi/libffi/0001-libffi-Support-musl-x32-build.patch
@@ -0,0 +1,44 @@
+From cc54279710e3ce6aa83b94ad68fb8247c24357c8 Mon Sep 17 00:00:00 2001
+From: sweeaun <swee.aun.khor@intel.com>
+Date: Thu, 29 Jun 2017 15:27:46 -0700
+Subject: [PATCH] libffi: Support musl x32 build
+
+Support libffi build with musl-x32 option.
+
+Signed-off-by: sweeaun <swee.aun.khor@intel.com>
+---
+ configure | 3 +++
+ configure.ac | 3 +++
+ 2 files changed, 6 insertions(+)
+
+diff --git a/configure b/configure
+index c6da467..ad7ebda 100755
+--- a/configure
++++ b/configure
+@@ -17181,6 +17181,9 @@ case "$host" in
+ *-gnux32)
+ TARGET=X86_64
+ ;;
++ *-muslx32)
++ TARGET=X86_64
++ ;;
+ *)
+ TARGET=X86
+ ;;
+diff --git a/configure.ac b/configure.ac
+index a7bf5ee..f4e101d 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -180,6 +180,9 @@ case "$host" in
+ *-gnux32)
+ TARGET=X86_64
+ ;;
++ *-muslx32)
++ TARGET=X86_64
++ ;;
+ *)
+ TARGET=X86
+ ;;
+--
+2.7.4
+
diff --git a/meta/recipes-support/libffi/libffi_3.2.1.bb b/meta/recipes-support/libffi/libffi_3.2.1.bb
index 43eee8efc4b..2a3f4b743dd 100644
--- a/meta/recipes-support/libffi/libffi_3.2.1.bb
+++ b/meta/recipes-support/libffi/libffi_3.2.1.bb
@@ -13,6 +13,7 @@ SRC_URI = "ftp://sourceware.org/pub/libffi/${BP}.tar.gz \
file://not-win32.patch \
file://0001-mips-Use-compiler-internal-define-for-linux.patch \
file://0001-mips-fix-MIPS-softfloat-build-issue.patch \
+ file://0001-libffi-Support-musl-x32-build.patch \
"
SRC_URI[md5sum] = "83b89587607e3eb65c70d361f13bab43"