https://github.com/python/cpython/commit/f386f1feedd85b0c2d8d0e7aeec7009b410757b4 commit: f386f1feedd85b0c2d8d0e7aeec7009b410757b4 branch: main author: Armaan Sandhu <[email protected]> committer: vstinner <[email protected]> date: 2026-05-28T14:38:39+02:00 summary:
gh-150311: Fix minor issues in configure.ac for Cygwin (#150328) - Use 'CYGWIN' (uppercase) for ac_sys_system to match the casing used in all case-pattern references throughout configure.ac. - Fix LDLIBRARY for static builds: use '.a' extension instead of '.dll.a' when shared libraries are disabled. - Replace hardcoded 'gcc' and 'g++' with '$(CC)' and '$(CXX)' in LDSHARED/LDCXXSHARED for Cygwin. Co-authored-by: Victor Stinner <[email protected]> files: M configure M configure.ac diff --git a/configure b/configure index 0690e97b142f01..81862372f7d777 100755 --- a/configure +++ b/configure @@ -4157,7 +4157,7 @@ then ac_sys_system=Linux ;; *-*-cygwin*) - ac_sys_system=Cygwin + ac_sys_system=CYGWIN ;; *-apple-ios*) ac_sys_system=iOS @@ -7848,7 +7848,7 @@ else # shared is disabled case $ac_sys_system in CYGWIN*) BLDLIBRARY='$(LIBRARY)' - LDLIBRARY='libpython$(LDVERSION).dll.a' + LDLIBRARY='libpython$(LDVERSION).a' ;; esac fi @@ -14232,8 +14232,8 @@ then : fi;; CYGWIN*) - LDSHARED="gcc -shared -Wl,--enable-auto-image-base" - LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; + LDSHARED='$(CC) -shared -Wl,--enable-auto-image-base' + LDCXXSHARED='$(CXX) -shared -Wl,--enable-auto-image-base';; *) LDSHARED="ld";; esac fi diff --git a/configure.ac b/configure.ac index f2fca52c8f3dfc..c8dce3fd49bda1 100644 --- a/configure.ac +++ b/configure.ac @@ -334,7 +334,7 @@ then ac_sys_system=Linux ;; *-*-cygwin*) - ac_sys_system=Cygwin + ac_sys_system=CYGWIN ;; *-apple-ios*) ac_sys_system=iOS @@ -1650,7 +1650,7 @@ else # shared is disabled case $ac_sys_system in CYGWIN*) BLDLIBRARY='$(LIBRARY)' - LDLIBRARY='libpython$(LDVERSION).dll.a' + LDLIBRARY='libpython$(LDVERSION).a' ;; esac fi @@ -3694,8 +3694,8 @@ then dnl not implemented yet ]);; CYGWIN*) - LDSHARED="gcc -shared -Wl,--enable-auto-image-base" - LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; + LDSHARED='$(CC) -shared -Wl,--enable-auto-image-base' + LDCXXSHARED='$(CXX) -shared -Wl,--enable-auto-image-base';; *) LDSHARED="ld";; esac fi _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
