Merge pull request #53501 from LnL7/manual-makeflagsarray

doc: don't overwrite makeFlagsArray in the example
This commit is contained in:
Danylo Hlynskyi 2019-01-23 20:05:16 +02:00 committed by GitHub
commit 506d8ea72f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1279,7 +1279,9 @@ makeFlags = [ "PREFIX=$(out)" ];
<command>make</command>. You must use this instead of
<varname>makeFlags</varname> if the arguments contain spaces, e.g.
<programlisting>
makeFlagsArray=(CFLAGS="-O0 -g" LDFLAGS="-lfoo -lbar")
preBuild = ''
makeFlagsArray+=(CFLAGS="-O0 -g" LDFLAGS="-lfoo -lbar")
'';
</programlisting>
Note that shell arrays cannot be passed through environment variables,
so you cannot set <varname>makeFlagsArray</varname> in a derivation