[gnome-continuous-yocto/gnomeostree-3.28-rocko: 6905/8267] libffi: Support musl-x32 build



commit 027f3d0aefbd2825eb65662a738cd40b63915224
Author: sweeaun <swee aun khor intel com>
Date:   Wed Jul 19 13:29:42 2017 -0700

    libffi: Support musl-x32 build
    
    Added target musl-x32 in configure.ac to support musl-x32 build in libffi.
    
    (From OE-Core rev: 318e33a708378652edcf61ce7d9d7f3a07743000)
    
    Signed-off-by: sweeaun <swee aun khor intel com>
    Signed-off-by: Ross Burton <ross burton intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 .../0001-libffi-Support-musl-x32-build.patch       |   30 ++++++++++++++++++++
 meta/recipes-support/libffi/libffi_3.2.1.bb        |    1 +
 2 files changed, 31 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 0000000..6b167c8
--- /dev/null
+++ b/meta/recipes-support/libffi/libffi/0001-libffi-Support-musl-x32-build.patch
@@ -0,0 +1,30 @@
+From 69c3906c85c791716bf650aa36d9361d22acf3fb Mon Sep 17 00:00:00 2001
+From: sweeaun <swee aun khor intel com>
+Date: Thu, 6 Jul 2017 16:32:46 -0700
+Subject: [PATCH] libffi: Support musl x32 build
+
+Support libffi build with target musl-x32.
+
+Upstream-Status: Pending
+
+Signed-off-by: sweeaun <swee aun khor intel com>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index a7bf5ee..8ebe99c 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -177,7 +177,7 @@ case "$host" in
+       TARGETDIR=x86
+       if test $ac_cv_sizeof_size_t = 4; then
+         case "$host" in
+-          *-gnux32)
++          *-gnux32 | *-muslx32)
+             TARGET=X86_64
+             ;;
+           *)
+-- 
+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 43eee8e..2a3f4b7 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"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]