On the master branch @ 3c88eac28e8984893746caebb313dc3b2fca90db, consider the following commands in the depends
subdirectory:
0$ make print-build HOST=i686-pc-linux-gnu CC="clang -m32"
1build=x86_64-pc-linux-gnu
2$ make print-host HOST=i686-pc-linux-gnu CC="clang -m32"
3host=i686-pc-linux-gnu
The printed variable values are expected.
However, switching the CC
variable context from Makefile to the shell environment breaks expectations:
0$ CC="clang -m32" make print-build HOST=i686-pc-linux-gnu
1build=i686-pc-linux-gnu
2$ CC="clang -m32" make print-host HOST=i686-pc-linux-gnu
3host=i686-pc-linux-gnu
This PR fixes this issue.