svn commit: r420660 - head/Mk/Uses

Jimmy Olgeni olgeni at FreeBSD.org
Tue Aug 23 11:00:59 UTC 2016


Author: olgeni
Date: Tue Aug 23 11:00:57 2016
New Revision: 420660
URL: https://svnweb.freebsd.org/changeset/ports/420660

Log:
  Pass MAKE_ENV to the ERLANG_COMPILE command, so that CFLAGS and
  LDFLAGS actually reach the C compiler when invoked by rebar.

Modified:
  head/Mk/Uses/erlang.mk

Modified: head/Mk/Uses/erlang.mk
==============================================================================
--- head/Mk/Uses/erlang.mk	Tue Aug 23 10:58:19 2016	(r420659)
+++ head/Mk/Uses/erlang.mk	Tue Aug 23 11:00:57 2016	(r420660)
@@ -95,7 +95,7 @@ do-build:
 .for target in ${REBAR_TARGETS}
 # Remove rebar.lock every time - it can be created again after each run of rebar3
 	@${RM} ${WRKSRC}/rebar.lock
-	@cd ${WRKSRC} && REBAR_PROFILE=${REBAR_PROFILE} ${ERLANG_COMPILE} ${target}
+	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} REBAR_PROFILE=${REBAR_PROFILE} ${ERLANG_COMPILE} ${target}
 .endfor
 .endif # !target(do-build)
 


More information about the svn-ports-all mailing list