From 8bc5db5017a72b64c8830e2db1fc83e7425f5ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Tue, 24 Mar 2020 19:39:43 +0100 Subject: [PATCH] libffi: fix mips{,el}-musl build (soft float) --- srcpkgs/libffi/patches/mips-soft-float.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 srcpkgs/libffi/patches/mips-soft-float.patch diff --git a/srcpkgs/libffi/patches/mips-soft-float.patch b/srcpkgs/libffi/patches/mips-soft-float.patch new file mode 100644 index 00000000000..10dcb3f3f9f --- /dev/null +++ b/srcpkgs/libffi/patches/mips-soft-float.patch @@ -0,0 +1,15 @@ +--- src/mips/o32.S 2019-10-31 15:49:54.000000000 +0100 ++++ src/mips/o32.S 2020-03-24 19:38:35.794316204 +0100 +@@ -281,10 +281,11 @@ + + li $13, 1 # FFI_O32 + bne $16, $13, 1f # Skip fp save if FFI_O32_SOFT_FLOAT +- ++#ifndef __mips_soft_float + # Store all possible float/double registers. + s.d $f12, FA_0_0_OFF2($fp) + s.d $f14, FA_1_0_OFF2($fp) ++#endif + 1: + # prepare arguments for ffi_closure_mips_inner_O32 + REG_L a0, 4($15) # cif