Commit 4872c9b4 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Use C++ compiler to detect mruby since we have to enable C++ ABI mode

Since default Debian/Ubuntu mruby package does not enable C++ ABI
mode, it cannot be used with our C++ code, since mruby exception does
not properly cleanup C++ object allocated on stack.  We have to build
mruby with conf.enable_cxx_abi explicitly.  It is safe for us to build
our own mruby.
parent d8ca0a8d
......@@ -376,6 +376,7 @@ fi
AM_CONDITIONAL([HAVE_SPDYLAY], [ test "x${have_spdylay}" = "xyes" ])
# mruby (for src/nghttpx)
AC_LANG_PUSH(C++)
LIBS_OLD=$LIBS
have_mruby=no
if test "x${request_mruby}" != "xno"; then
......@@ -392,6 +393,7 @@ if test "x${request_mruby}" != "xno"; then
fi
fi
LIBS=$LIBS_OLD
AC_LANG_POP()
if test "x${request_mruby}" = "xyes" &&
test "x${have_mruby}" != "xyes"; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment