svn commit: r495527 - head/www/node8
Bradley T. Hughes
bhughes at FreeBSD.org
Tue Mar 12 21:08:20 UTC 2019
Author: bhughes
Date: Tue Mar 12 21:08:19 2019
New Revision: 495527
URL: https://svnweb.freebsd.org/changeset/ports/495527
Log:
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
Modified:
head/www/node8/Makefile
Modified: head/www/node8/Makefile
==============================================================================
--- head/www/node8/Makefile Tue Mar 12 21:07:24 2019 (r495526)
+++ head/www/node8/Makefile Tue Mar 12 21:08:19 2019 (r495527)
@@ -59,7 +59,9 @@ SHEBANG_FILES= tools/specialize_node_d.py tools/genv8c
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 \
More information about the svn-ports-head
mailing list