Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Mar 2019 21:09:14 +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: r495528 - head/www/node6
Message-ID:  <201903122109.x2CL9EYQ092836@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903122109.x2CL9EYQ092836>