summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2014-08-22 20:30:59 (GMT)
committerNed Deily <nad@acm.org>2014-08-22 20:30:59 (GMT)
commit983df8688d6add6d7f35388eac97d5ecd1c8017f (patch)
tree6dc430b8624e77e59931b2bd3a43bff9f8db36a0 /configure
parent01408453f12a1acd7c1b2caeca377d4bd6ea7947 (diff)
downloadcpython-983df8688d6add6d7f35388eac97d5ecd1c8017f.zip
cpython-983df8688d6add6d7f35388eac97d5ecd1c8017f.tar.gz
cpython-983df8688d6add6d7f35388eac97d5ecd1c8017f.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 2c1c82d..4a698f3 100755
--- a/configure
+++ b/configure
@@ -2857,6 +2857,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; }