@@ -1520,6 +1520,11 @@ if test $enable_shared = "yes"; then
1520
1520
LDLIBRARY='libpython$(LDVERSION).dll.a'
1521
1521
DLLLIBRARY='libpython$(LDVERSION).dll'
1522
1522
;;
1523
+ MINGW*)
1524
+ LDLIBRARY='libpython$(LDVERSION).dll.a'
1525
+ DLLLIBRARY='libpython$(LDVERSION).dll'
1526
+ BLDLIBRARY='-L. -lpython$(LDVERSION)'
1527
+ ;;
1523
1528
SunOS*)
1524
1529
LDLIBRARY='libpython$(LDVERSION).so'
1525
1530
BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)'
@@ -1570,6 +1575,9 @@ else # shared is disabled
1570
1575
BLDLIBRARY='$(LIBRARY)'
1571
1576
LDLIBRARY='libpython$(LDVERSION).dll.a'
1572
1577
;;
1578
+ MINGW*)
1579
+ LDLIBRARY='libpython$(LDVERSION).a'
1580
+ ;;
1573
1581
esac
1574
1582
fi
1575
1583
@@ -3336,6 +3344,10 @@ then
3336
3344
CYGWIN*)
3337
3345
LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
3338
3346
LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
3347
+ MINGW*)
3348
+ LDSHARED='$(CC) -shared -Wl,--enable-auto-image-base'
3349
+ LDCXXSHARED='$(CXX) -shared -Wl,--enable-auto-image-base'
3350
+ ;;
3339
3351
*) LDSHARED="ld";;
3340
3352
esac
3341
3353
fi
@@ -6495,7 +6507,8 @@ case $host in
6495
6507
dnl "errmap.h" from $srcdir/PC.
6496
6508
dnl Note we cannot use BASECPPFLAGS as autogenerated pyconfig.h
6497
6509
dnl has to be before customized located in ../PC.
6498
- CPPFLAGS="-I\$(srcdir)/PC $CPPFLAGS"
6510
+ dnl (-I. at end is workaround for setup.py logic)
6511
+ CPPFLAGS="-I\$(srcdir)/PC $CPPFLAGS -I."
6499
6512
;;
6500
6513
esac
6501
6514
0 commit comments