summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2014-08-22 20:32:49 (GMT)
committerNed Deily <nad@acm.org>2014-08-22 20:32:49 (GMT)
commitfcbc246e9f02cc780970defbcfa01767b7e3a3c6 (patch)
treeffd688ef004d7d04328ecbf1d7401df1effe22e7 /configure
parent0242f79051cd43343bafa797c2bfa9512f7be6c2 (diff)
downloadcpython-fcbc246e9f02cc780970defbcfa01767b7e3a3c6.zip
cpython-fcbc246e9f02cc780970defbcfa01767b7e3a3c6.tar.gz
cpython-fcbc246e9f02cc780970defbcfa01767b7e3a3c6.tar.bz2
Issue #21166: Prevent possible segfaults and other random failures of
python --generate-posix-vars in pybuilddir.txt build target by ensuring that pybuilddir.txt is always regenerated when configure is run and that the newly built skeleton python does not inadvertently import modules from previously installed instances.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index 7379203..139d391 100755
--- a/configure
+++ b/configure
@@ -2950,6 +2950,9 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
+# pybuilddir.txt will be created by --generate-posix-vars in the Makefile
+rm -f pybuilddir.txt
+
if test "$cross_compiling" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5
$as_echo_n "checking for python interpreter for cross build... " >&6; }