b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | --- a/Makefile.pre.in |
2 | +++ b/Makefile.pre.in | ||||
3 | @@ -2178,7 +2178,7 @@ python-config: $(srcdir)/Misc/python-con | ||||
4 | @ # On Darwin, always use the python version of the script, the shell | ||||
5 | @ # version doesn't use the compiler customizations that are provided | ||||
6 | @ # in python (_osx_support.py). | ||||
7 | - @if test `uname -s` = Darwin; then \ | ||||
8 | + @if test "$(USE_PYTHON_CONFIG_PY)" = 1; then \ | ||||
9 | cp python-config.py python-config; \ | ||||
10 | fi | ||||
11 |