mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* configure.ac: do not use __builtin_longjmp on ppc64* Linux
because it causes a segmentation fault with MJIT git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
74072a1686
commit
67fcbf9328
1 changed files with 8 additions and 0 deletions
|
@ -980,6 +980,14 @@ main()
|
|||
[aix*],[ LIBS="-lm $LIBS"
|
||||
ac_cv_func_round=no
|
||||
],
|
||||
[linux*],[ LIBS="-lm $LIBS"
|
||||
# __builtin_longjmp in ppc64* Linux does not restore
|
||||
# the TOC register (r2), which is problematic
|
||||
# when a global exit happens from JITted .so code.
|
||||
AS_CASE(["$target_cpu"], [powerpc64*], [
|
||||
ac_cv_func___builtin_setjmp=no
|
||||
])
|
||||
],
|
||||
[ LIBS="-lm $LIBS"])
|
||||
: ${ORIG_LIBS=$LIBS}
|
||||
|
||||
|
|
Loading…
Reference in a new issue