From 81b0abaf0b81732758ae2d68d230d69824b21f07 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 17 Nov 2018 15:34:19 +0000 Subject: [PATCH] Fix MinGW 64bit native windows Python linking problems Fixes linker error: undefined reference to `__imp_Py_InitModule4' --- appveyor.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 52ff742e0..533b7b532 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -67,6 +67,9 @@ install: $env:MSYSTEM="MINGW$env:MBITS" $env:CC="$env:MARCH-w64-mingw32-gcc" $env:CXX="$env:MARCH-w64-mingw32-g++" + if ($env:MBITS -eq "64" -and $env:SWIGLANG -eq "python") { + $env:CHECK_OPTIONS2="CFLAGS+=-DMS_WIN64 CXXFLAGS+=-DMS_WIN64" + } } - if "%OSVARIANT%"=="" bash -c "cd /usr/bin && curl --retry 15 -s -L https://github.com/swig/cccl/archive/cccl-1.0.tar.gz | tar -xz --strip 1 cccl-cccl-1.0/cccl" - if "%OSVARIANT%"=="" echo Using Visual Studio %VSVER%.0 at %VSCOMNTOOLS%