Date: Tue, 12 Mar 2019 21:08:19 +0000 (UTC) From: "Bradley T. Hughes" <bhughes@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r495527 - head/www/node8 Message-ID: <201903122108.x2CL8JQ0092681@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903122108.x2CL8JQ0092681>