svn commit: r495528 - head/www/node6
Bradley T. Hughes
bhughes at FreeBSD.org
Tue Mar 12 21:09:15 UTC 2019
Author: bhughes
Date: Tue Mar 12 21:09:14 2019
New Revision: 495528
URL: https://svnweb.freebsd.org/changeset/ports/495528
Log:
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
Modified:
head/www/node6/Makefile
Modified: head/www/node6/Makefile
==============================================================================
--- head/www/node6/Makefile Tue Mar 12 21:08:19 2019 (r495527)
+++ head/www/node6/Makefile Tue Mar 12 21:09:14 2019 (r495528)
@@ -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-all
mailing list