From d612c44dad8a5d4c373b0c4bc08a99e3dc06498e Mon Sep 17 00:00:00 2001 From: odaira Date: Tue, 4 Dec 2018 22:19:09 +0000 Subject: Enable MJIT on AIX * configure.ac: disable using __builtin_setjmp to avoid errors when execution globally jumps out of JITted code. Specify -std=gnu99 to JIT compilation to avoid errors regarding the "restrict" keyword in the precompiled header. Specify -shared in addition to -Wl,-G when building shared libraries to make mjit_build_dir.so expose the MJIT_BUILD_DIR symbol. Use LDR_PRELOAD to load mjit_build_dir.so. * mjit_worker.c: do not specify -nodefaultlibs or -nostdlibs because on AIX JITted code internally refers to the memcpy function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- mjit_worker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mjit_worker.c') diff --git a/mjit_worker.c b/mjit_worker.c index 9c77722905..a2797098d4 100644 --- a/mjit_worker.c +++ b/mjit_worker.c @@ -260,7 +260,7 @@ static const char *const CC_DLDFLAGS_ARGS[] = { MJIT_DLDFLAGS #if defined __GNUC__ && !defined __clang__ "-nostartfiles", -# if !defined(_WIN32) && !defined(__CYGWIN__) +# if !defined(_WIN32) && !defined(__CYGWIN__) && !defined(_AIX) "-nodefaultlibs", "-nostdlib", # endif #endif -- cgit v1.2.3