diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-03-31 10:55:17 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-03-31 10:55:17 +0100 |
commit | 75fc75ae1f0481ffdb78450e801a9b443ba641bd (patch) | |
tree | cef96ea0860ae39a202bbf1e226100335209627d /dev-lang/mono/files | |
parent | 1173ad5704ce725916e0c332416aff326d850d06 (diff) |
gentoo resync : 31.03.2018
Diffstat (limited to 'dev-lang/mono/files')
-rw-r--r-- | dev-lang/mono/files/mono-4.4.1.0-x86_32.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/dev-lang/mono/files/mono-4.4.1.0-x86_32.patch b/dev-lang/mono/files/mono-4.4.1.0-x86_32.patch new file mode 100644 index 000000000000..751c057e6ce4 --- /dev/null +++ b/dev-lang/mono/files/mono-4.4.1.0-x86_32.patch @@ -0,0 +1,20 @@ +Native toolchain can default to different ABI (amd64 in bug case). +Set target to i386. +https://bugs.gentoo.org/600664 +diff -Naur a/mono/mini/aot-compiler.c b/mono/mini/aot-compiler.c +--- a/mono/mini/aot-compiler.c 2016-06-22 04:31:58.000000000 -0500 ++++ b/mono/mini/aot-compiler.c 2017-12-08 14:25:35.338251941 -0600 +@@ -9438,7 +9438,12 @@ + const char *tool_prefix = acfg->aot_opts.tool_prefix ? acfg->aot_opts.tool_prefix : ""; + char *ld_flags = acfg->aot_opts.ld_flags ? acfg->aot_opts.ld_flags : g_strdup(""); + +-#if defined(TARGET_AMD64) && !defined(TARGET_MACH) ++#if defined(TARGET_X86) ++#define LD_OPTIONS "-m elf_i386" ++#if !defined(TARGET_MACH) ++#define AS_OPTIONS "--32" ++#endif ++#elif defined(TARGET_AMD64) && !defined(TARGET_MACH) + #define AS_OPTIONS "--64" + #elif defined(TARGET_POWERPC64) + #define AS_OPTIONS "-a64 -mppc64" |