From owner-svn-ports-all@freebsd.org Tue Mar 12 21:09:15 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 56BE8153EB47; Tue, 12 Mar 2019 21:09:15 +0000 (UTC) (envelope-from bhughes@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EC30286165; Tue, 12 Mar 2019 21:09:14 +0000 (UTC) (envelope-from bhughes@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DFA9B577; Tue, 12 Mar 2019 21:09:14 +0000 (UTC) (envelope-from bhughes@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x2CL9EKo092837; Tue, 12 Mar 2019 21:09:14 GMT (envelope-from bhughes@FreeBSD.org) Received: (from bhughes@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x2CL9EYQ092836; Tue, 12 Mar 2019 21:09:14 GMT (envelope-from bhughes@FreeBSD.org) Message-Id: <201903122109.x2CL9EYQ092836@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bhughes set sender to bhughes@FreeBSD.org using -f From: "Bradley T. Hughes" Date: Tue, 12 Mar 2019 21:09:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r495528 - head/www/node6 X-SVN-Group: ports-head X-SVN-Commit-Author: bhughes X-SVN-Commit-Paths: head/www/node6 X-SVN-Commit-Revision: 495528 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: EC30286165 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_SHORT(-0.97)[-0.974,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Mar 2019 21:09:15 -0000 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