Fix MinGW 64bit native windows Python linking problems

Fixes linker error:
  undefined reference to `__imp_Py_InitModule4'
This commit is contained in:
William S Fulton 2018-11-17 15:34:19 +00:00
commit 81b0abaf0b

View file

@ -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%