File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -807,6 +807,12 @@ Python/dynload_hpux.o: $(srcdir)/Python/dynload_hpux.c Makefile
807
807
-DSHLIB_EXT='"$(EXT_SUFFIX)"' \
808
808
-o $@ $(srcdir)/Python/dynload_hpux.c
809
809
810
+ Python/dynload_win.o: $(srcdir)/Python/dynload_win.c Makefile
811
+ $(CC) -c $(PY_CORE_CFLAGS) \
812
+ -DSHLIB_SUFFIX='"$(SHLIB_SUFFIX)"' \
813
+ -DEXT_SUFFIX='"$(EXT_SUFFIX)"' \
814
+ -o $@ $(srcdir)/Python/dynload_win.c
815
+
810
816
Python/sysmodule.o: $(srcdir)/Python/sysmodule.c Makefile
811
817
$(CC) -c $(PY_CORE_CFLAGS) \
812
818
-DABIFLAGS='"$(ABIFLAGS)"' \
Original file line number Diff line number Diff line change @@ -35,9 +35,20 @@ void _Py_DeactivateActCtx(ULONG_PTR cookie);
35
35
const char * _PyImport_DynLoadFiletab [] = {
36
36
PYD_TAGGED_SUFFIX ,
37
37
PYD_UNTAGGED_SUFFIX ,
38
+ #ifdef EXT_SUFFIX
39
+ EXT_SUFFIX , /* include SOABI flags where is encoded debug */
40
+ #endif
41
+ #ifdef SHLIB_SUFFIX
42
+ "-abi" PYTHON_ABI_STRING SHLIB_SUFFIX ,
43
+ #endif
38
44
NULL
39
45
};
40
46
47
+
48
+ #if defined(__MINGW32__ )
49
+ /* avoid compile error: conflicting types for 'strcasecmp' */
50
+ # define strcasecmp fake_strcasecmp
51
+ #endif
41
52
/* Case insensitive string compare, to avoid any dependencies on particular
42
53
C RTL implementations */
43
54
Original file line number Diff line number Diff line change @@ -2641,6 +2641,9 @@ if test -z "$SHLIB_SUFFIX"; then
2641
2641
CYGWIN*) SHLIB_SUFFIX=.dll;;
2642
2642
*) SHLIB_SUFFIX=.so;;
2643
2643
esac
2644
+ case $host_os in
2645
+ mingw*) SHLIB_SUFFIX=.dll;;
2646
+ esac
2644
2647
fi
2645
2648
AC_MSG_RESULT ( $SHLIB_SUFFIX )
2646
2649
@@ -3679,6 +3682,12 @@ then
3679
3682
fi
3680
3683
;;
3681
3684
esac
3685
+ case $host in
3686
+ *-*-mingw*)
3687
+ DYNLOADFILE="dynload_win.o"
3688
+ extra_machdep_objs="$extra_machdep_objs PC/dl_nt.o"
3689
+ ;;
3690
+ esac
3682
3691
fi
3683
3692
AC_MSG_RESULT ( $DYNLOADFILE )
3684
3693
if test "$DYNLOADFILE" != "dynload_stub.o"
@@ -4920,6 +4929,13 @@ case $ac_sys_system in
4920
4929
EXT_SUFFIX=${SHLIB_SUFFIX};;
4921
4930
esac
4922
4931
4932
+ case $host_os in
4933
+ mingw*)
4934
+ dnl Synchronized with _PyImport_DynLoadFiletab (dynload_win.c)
4935
+ dnl Do not use more then one dot on this platform !
4936
+ EXT_SUFFIX=-$SOABI$SHLIB_SUFFIX;;
4937
+ esac
4938
+
4923
4939
AC_MSG_CHECKING ( LDVERSION )
4924
4940
LDVERSION='$(VERSION)$(ABIFLAGS)'
4925
4941
AC_MSG_RESULT ( $LDVERSION )
You can’t perform that action at this time.
0 commit comments