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.
UPDATE 2026-01-20
On the master branch @ 7f5ebef56a0f2bad7df30252b11da3e33cb3c144:
0$ gmake print-build HOST=i686-pc-linux-gnu CC="clang -m32"
1build=i686-pc-linux-gnu
2$ gmake print-host HOST=i686-pc-linux-gnu CC="clang -m32"
3host=i686-pc-linux-gnu