]> granicus.if.org Git - libexpat/commit
Fix link step on MinGW
authorxantares <xantares09@hotmail.com>
Thu, 20 Jun 2019 17:01:30 +0000 (19:01 +0200)
committerGitHub <noreply@github.com>
Thu, 20 Jun 2019 17:01:30 +0000 (19:01 +0200)
commit42816e362541eb31cb3943c3916292dcb36a3d6c
tree1821fe4468779e4a3cbbdc3d963ec7fe08e928e6
parentd3b78b42a2dcdea98e22625cfff67a49d47e6025
Fix link step on MinGW

.def files are handled differently on MinGW than MSVC for the WIN32 target:

```
[ 14%] Linking C shared library libexpat.dll
/usr/lib/gcc/x86_64-w64-mingw32/9.1.0/../../../../x86_64-w64-mingw32/bin/ld: ../lib/libexpat.def:4: syntax error
/usr/lib/gcc/x86_64-w64-mingw32/9.1.0/../../../../x86_64-w64-mingw32/bin/ld:../lib/libexpat.def: file format not recognized; treating as linker script
/usr/lib/gcc/x86_64-w64-mingw32/9.1.0/../../../../x86_64-w64-mingw32/bin/ld:../lib/libexpat.def:1: syntax error
collect2: error: ld returned 1 exit status
```
expat/CMakeLists.txt