void-packages/srcpkgs/gcc/patches/mips-sgidefs_h.patch
Jürgen Buchmüller e89ea5e453 gcc: remove i686 patch for stack_chk_fail_local
This patch was introduced with gcc 7.2.0 to circumvent problems
with strong stack protector enabled for gcc.

With the current version it is not just obsolete but outright
wrong and causes "strange" issues with builds failing for
no obvious reason.

One example is the mruby package which failed to build and
now, after the bad patch is removed, works out of the box.

Add a new patch libssp-musl.patch and with the same revbump
add two patches for mips32 header file sgidefs.h location
and soft-float for mips-musl and mipsel-musl.

[ci skip]
2020-06-08 22:14:04 +02:00

11 lines
318 B
Diff

--- libffi/src/mips/ffitarget.h 2014-11-08 13:47:24.000000000 +0100
+++ libffi/src/mips/ffitarget.h 2017-11-09 16:51:11.866848444 +0100
@@ -42,7 +42,7 @@
#define _MIPS_SIM_NABI32 2
#define _MIPS_SIM_ABI64 3
#elif !defined(__OpenBSD__)
-# include <sgidefs.h>
+# include <asm/sgidefs.h>
#endif
# ifndef _ABIN32