Again fix mruby build properly; pass CC, CXX and LD to build_config.rb
This commit is contained in:
parent
6dcfe1c3f8
commit
69c3e2114a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue