www/node6: set environment variables for host build

The Node.js build system supports cross-compilation via node-gyp, which
picks up CC, CXX, LINK, C*FLAGS, and LDFLAGS from the environment for the
target build, but not for the host. We need to set the environment variables
for the "host" build.

Sponsored by:	Miles AS
Differential Revision:	 https://reviews.freebsd.org/D19250
This commit is contained in:
Bradley T. Hughes 2019-03-12 21:09:14 +00:00
parent ea12026b04
commit bee505e336
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=495528

View File

@ -59,7 +59,9 @@ SHEBANG_FILES= tools/specialize_node_d.py tools/genv8constants.py
PREFIX_RELDEST= ${PREFIX:S,^${DESTDIR},,}
REINPLACE_ARGS= -i ''
MAKE_ENV+= CC.host=${CC} CXX.host=${CXX} LINK.host=${CXX} LINK.target=${CXX}
MAKE_ENV+= CC.host=${CC} CFLAGS.host="${CFLAGS}" \
CXX.host=${CXX} CXXFLAGS.host="${CXXFLAGS}" \
LINK.host=${CXX} LDFLAGS.host="${LDFLAGS}"
LIB_DEPENDS+= libcares.so:dns/c-ares\
libuv.so:devel/libuv