summaryrefslogtreecommitdiff
path: root/lang/python/python3/patches/025-choose-python-config-version.patch
blob: aa56d89426003c7d0b1b68aefaa42400ee631883 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -2168,7 +2168,7 @@ python-config: $(srcdir)/Misc/python-con
 	@ # On Darwin, always use the python version of the script, the shell
 	@ # version doesn't use the compiler customizations that are provided
 	@ # in python (_osx_support.py).
-	@if test `uname -s` = Darwin; then \
+	@if test "$(USE_PYTHON_CONFIG_PY)" = 1; then \
 		cp python-config.py python-config; \
 	fi