Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d9cf41c

Browse files
committed
- Remove Guido's LINKCC=CXX experiment.
- Cygwin doesn't want CCSHARED flag when bulding the interpreter DLL.
1 parent 2174f80 commit d9cf41c

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

configure.in

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,6 @@ DLLLIBRARY=''
221221
# linking.
222222
AC_SUBST(LINKCC)
223223
AC_MSG_CHECKING(LINKCC)
224-
if test -z "$LINKCC" -a ! -z "$CXX"
225-
then
226-
LINKCC="$CXX"
227-
fi
228224
if test -z "$LINKCC"
229225
then
230226
case $ac_sys_system in
@@ -647,7 +643,14 @@ AC_SUBST(CFLAGSFORSHARED)
647643
AC_MSG_CHECKING(CFLAGSFORSHARED)
648644
if test ! "$LIBRARY" = "$LDLIBRARY"
649645
then
650-
CFLAGSFORSHARED='$(CCSHARED)'
646+
case $ac_sys_system in
647+
CYGWIN*)
648+
# Cygwin needs CCSHARED when building extension DLLs
649+
# but not when building the interpreter DLL.
650+
CFLAGSFORSHARED='';;
651+
*)
652+
CFLAGSFORSHARED='$(CCSHARED)'
653+
esac
651654
fi
652655
AC_MSG_RESULT($CFLAGSFORSHARED)
653656

0 commit comments

Comments
 (0)