1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

www/node8: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:08:19 +00:00
parent 54b7f409c2
commit ea12026b04
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=495527

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 \