mirror of
https://gitee.com/openharmony/third_party_nghttp2
synced 2024-11-23 07:50:02 +00:00
Fix mruby build error
mruby minirake does not like CXX="clang++-7 -std=c++14" because it expects CXX to be an executable. To workaround this, split CXX so that CXX becomes a single word and move the rest of words to CXXFLAGS.
This commit is contained in:
parent
45d63d2006
commit
a69251864b
5
third-party/Makefile.am
vendored
5
third-party/Makefile.am
vendored
@ -49,8 +49,9 @@ mruby:
|
||||
MRUBY_CONFIG="${srcdir}/build_config.rb" \
|
||||
BUILD_DIR="${abs_builddir}/mruby/build" \
|
||||
INSTALL_DIR="${abs_builddir}/mruby/build/install/bin" \
|
||||
CC="${CC}" CXX="${CXX}" LD="${LD}" \
|
||||
CFLAGS="${CPPFLAGS} ${CFLAGS}" CXXFLAGS="${CPPFLAGS} ${CXXFLAGS}" \
|
||||
CC="${CC}" CXX="$(firstword $(CXX))" LD="${LD}" \
|
||||
CFLAGS="${CPPFLAGS} ${CFLAGS}" \
|
||||
CXXFLAGS="$(wordlist 2, $(words $(CXX)), $(CXX)) ${CPPFLAGS} ${CXXFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}" \
|
||||
"${srcdir}/mruby/minirake" -f "${srcdir}/mruby/Rakefile"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user