Commit 69c3e211 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Again fix mruby build properly; pass CC, CXX and LD to build_config.rb

parent 6dcfe1c3
......@@ -148,7 +148,8 @@ nghttpx_CPPFLAGS = ${libnghttpx_a_CPPFLAGS}
nghttpx_LDADD = libnghttpx.a ${LDADD}
if HAVE_MRUBY
nghttpx_CPPFLAGS += -I${top_srcdir}/third-party/mruby/include @LIBMRUBY_CFLAGS@
libnghttpx_a_CPPFLAGS += \
-I${top_srcdir}/third-party/mruby/include @LIBMRUBY_CFLAGS@
nghttpx_LDADD += -L${top_builddir}/third-party/mruby/build/lib @LIBMRUBY_LIBS@
endif # HAVE_MRUBY
......
......@@ -36,14 +36,15 @@ if HAVE_MRUBY
mruby:
git submodule update --init
MRUBY_CONFIG=${srcdir}/build_config.rb \
BUILD_DIR=${abs_builddir}/mruby/build \
${srcdir}/mruby/minirake -f ${srcdir}/mruby/Rakefile
MRUBY_CONFIG="${srcdir}/build_config.rb" \
BUILD_DIR="${abs_builddir}/mruby/build" \
CC="${CC}" CXX="${CXX}" LD="${LD}" \
"${srcdir}/mruby/minirake" -f "${srcdir}/mruby/Rakefile"
all-local: mruby
clean-local:
-rm -rf ${abs_builddir}/mruby/build
-rm -rf "${abs_builddir}/mruby/build"
endif # HAVE_MRUBY
......
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