diff options
-rw-r--r-- | mono/mini/aot-compiler.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mono/mini/aot-compiler.c b/mono/mini/aot-compiler.c index 2425a9b118d..46380a64cf2 100644 --- a/mono/mini/aot-compiler.c +++ b/mono/mini/aot-compiler.c @@ -11269,6 +11269,8 @@ compile_asm (MonoAotCompile *acfg) #define AS_OPTIONS "-xarch=v9" #elif defined(TARGET_X86) && defined(TARGET_MACH) #define AS_OPTIONS "-arch i386" +#elif defined(TARGET_X86) && !defined(TARGET_MACH) +#define AS_OPTIONS "--32" #else #define AS_OPTIONS "" #endif @@ -11306,6 +11308,8 @@ compile_asm (MonoAotCompile *acfg) #elif defined(TARGET_X86) && defined(TARGET_MACH) #define LD_NAME "clang" #define LD_OPTIONS "-m32 -dynamiclib" +#elif defined(TARGET_X86) && !defined(TARGET_MACH) +#define LD_OPTIONS "-m elf_i386" #elif defined(TARGET_ARM) && !defined(TARGET_ANDROID) #define LD_NAME "gcc" #define LD_OPTIONS "--shared" |