Skip to content

Commit 2e439da

Browse files
committed
gh-150311: Fix minor issues in configure.ac for the CYGWIN port
- 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.
1 parent fad0674 commit 2e439da

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

configure.ac

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ then
334334
ac_sys_system=Linux
335335
;;
336336
*-*-cygwin*)
337-
ac_sys_system=Cygwin
337+
ac_sys_system=CYGWIN
338338
;;
339339
*-apple-ios*)
340340
ac_sys_system=iOS
@@ -1650,7 +1650,7 @@ else # shared is disabled
16501650
case $ac_sys_system in
16511651
CYGWIN*)
16521652
BLDLIBRARY='$(LIBRARY)'
1653-
LDLIBRARY='libpython$(LDVERSION).dll.a'
1653+
LDLIBRARY='libpython$(LDVERSION).a'
16541654
;;
16551655
esac
16561656
fi
@@ -3694,8 +3694,8 @@ then
36943694
dnl not implemented yet
36953695
]);;
36963696
CYGWIN*)
3697-
LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
3698-
LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
3697+
LDSHARED="$(CC) -shared -Wl,--enable-auto-image-base"
3698+
LDCXXSHARED="$(CXX) -shared -Wl,--enable-auto-image-base";;
36993699
*) LDSHARED="ld";;
37003700
esac
37013701
fi

0 commit comments

Comments
 (0)