summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authordoko@ubuntu.com <doko@ubuntu.com>2013-08-01 13:32:49 (GMT)
committerdoko@ubuntu.com <doko@ubuntu.com>2013-08-01 13:32:49 (GMT)
commit0df35b0a57fef5276c09e92da9ea7aaf77476f61 (patch)
tree6762b20731fdcd090f077eb1a48b04d12cef9ce5 /Makefile.pre.in
parentb2fcebb018740eb69f083e0d98abe0c23dc0e026 (diff)
downloadcpython-0df35b0a57fef5276c09e92da9ea7aaf77476f61.zip
cpython-0df35b0a57fef5276c09e92da9ea7aaf77476f61.tar.gz
cpython-0df35b0a57fef5276c09e92da9ea7aaf77476f61.tar.bz2
- Issue #18257: Fix readlink usage in python-config. Install the python
version again on Darwin.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index ad4eb30..8103124 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -1201,6 +1201,13 @@ python-config: $(srcdir)/Misc/python-config.in Misc/python-config.sh
sed -e "s,@EXENAME@,$(BINDIR)/python$(LDVERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python-config.py
# Replace makefile compat. variable references with shell script compat. ones; $(VAR) -> ${VAR}
sed -e 's,\$$(\([A-Za-z0-9_]*\)),\$$\{\1\},g' < Misc/python-config.sh >python-config
+ # 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 \
+ cp python-config.py python-config; \
+ fi
+
# Install the include files
INCLDIRSTOMAKE=$(INCLUDEDIR) $(CONFINCLUDEDIR) $(INCLUDEPY) $(CONFINCLUDEPY)