Add a note saying not to use := in *_DEPENDS variables.

Approved by:	wblock (mentor)
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3109
This commit is contained in:
Mathieu Arnold 2015-07-21 09:48:47 +00:00
parent 2d9a7eeaff
commit 2bc0582345
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=47032

View file

@ -3290,6 +3290,14 @@ ALWAYS_KEEP_DISTFILES= yes
other:${PORTSDIR}/lang/other
BUILD_DEPENDS= ${MY_DEPENDS}
RUN_DEPENDS= ${MY_DEPENDS}</programlisting>
<important>
<para><emphasis>Do not</emphasis> use <literal>:=</literal>
to assign <varname>BUILD_DEPENDS</varname> to
<varname>RUN_DEPENDS</varname> or vice-versa. All
variables are expanded immediately, which is exactly the
wrong thing to do and almost always a failure.</para>
</important>
</sect2>
<sect2 xml:id="makefile-build_depends">