]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46860: Respect `--with-suffix` on case-insensitive file systems (GH-31593)
authorBrett Cannon <brett@python.org>
Wed, 2 Mar 2022 22:23:59 +0000 (14:23 -0800)
committerGitHub <noreply@github.com>
Wed, 2 Mar 2022 22:23:59 +0000 (14:23 -0800)
Previously, case-insensitive file systems were forced to use `.exe` as the file suffix no matter what `--with-suffix` was set to.

Misc/NEWS.d/next/Build/2022-02-25-16-19-40.bpo-46860.jfciLG.rst [new file with mode: 0644]
configure
configure.ac

diff --git a/Misc/NEWS.d/next/Build/2022-02-25-16-19-40.bpo-46860.jfciLG.rst b/Misc/NEWS.d/next/Build/2022-02-25-16-19-40.bpo-46860.jfciLG.rst
new file mode 100644 (file)
index 0000000..7eab15d
--- /dev/null
@@ -0,0 +1 @@
+Respect `--with-suffix` when building on case-insensitive file systems.
index 49d5abeac3024d4fa7dfcace633d7be69b501098..07ecb804c1bd0fb8c76ae67af43d3da9ef4069d4 100755 (executable)
--- a/configure
+++ b/configure
@@ -6296,7 +6296,7 @@ if test ! -d CaseSensitiveTestDir; then
 mkdir CaseSensitiveTestDir
 fi
 
-if test -d casesensitivetestdir
+if test -d casesensitivetestdir && test -z "$EXEEXT"
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
index 83dd854248b428a3685c4373834e6428fd8595e2..fedec52f05a7559eebd93ea6a7e499394d574a8a 100644 (file)
@@ -1112,7 +1112,7 @@ if test ! -d CaseSensitiveTestDir; then
 mkdir CaseSensitiveTestDir
 fi
 
-if test -d casesensitivetestdir
+if test -d casesensitivetestdir && test -z "$EXEEXT"
 then
     AC_MSG_RESULT(yes)
     BUILDEXEEXT=.exe