Merge pull request #53501 from LnL7/manual-makeflagsarray
doc: don't overwrite makeFlagsArray in the example
This commit is contained in:
commit
506d8ea72f
|
@ -1279,7 +1279,9 @@ makeFlags = [ "PREFIX=$(out)" ];
|
||||||
<command>make</command>. You must use this instead of
|
<command>make</command>. You must use this instead of
|
||||||
<varname>makeFlags</varname> if the arguments contain spaces, e.g.
|
<varname>makeFlags</varname> if the arguments contain spaces, e.g.
|
||||||
<programlisting>
|
<programlisting>
|
||||||
makeFlagsArray=(CFLAGS="-O0 -g" LDFLAGS="-lfoo -lbar")
|
preBuild = ''
|
||||||
|
makeFlagsArray+=(CFLAGS="-O0 -g" LDFLAGS="-lfoo -lbar")
|
||||||
|
'';
|
||||||
</programlisting>
|
</programlisting>
|
||||||
Note that shell arrays cannot be passed through environment variables,
|
Note that shell arrays cannot be passed through environment variables,
|
||||||
so you cannot set <varname>makeFlagsArray</varname> in a derivation
|
so you cannot set <varname>makeFlagsArray</varname> in a derivation
|
||||||
|
|
Loading…
Reference in New Issue