doc update: add notes about $(TARGET)/bin in $PATH and clean environment

pull/244/head
Tony Theodore 11 years ago
parent 5d780139f4
commit cc71a5d94f

@ -355,6 +355,13 @@ exit</pre>
</p>
<pre>export PATH=/<em>where MXE is installed</em>/usr/bin:$PATH</pre>
<p>
You may be tempted to also add <code>$(TARGET)/bin</code>
to your path. You <strong>never</strong> want to do this,
the executables and scripts in there will cause conflicts
with your native toolchain.
</p>
<p>
In case you are using custom $PKG_CONFIG_PATH entries,
you can add separate entries for cross builds:
@ -373,6 +380,13 @@ exit</pre>
may spoil your compiling pleasure,
so be sure to delete or disable those.
</p>
<p>
For the most isolated and repeatable environment,
use a white-list approach:
</p>
<pre>unset `env | \
grep -v '^HOME=\|^LANG=\|^PATH=\|PKG_CONFIG\|^PS1=\|^TERM=' | \
sed -n 's,\(.*\)=.*$,\1,p' | tr '\n' ' '`</pre>
<p>
Congratulations!

Loading…
Cancel
Save