]> granicus.if.org Git - icu/commit
ICU-20842 Fix library names in pkg-config files on Windows (mingw-w64)
authorVincent Torri <vincent.torri@gmail.com>
Thu, 13 Feb 2020 12:15:12 +0000 (13:15 +0100)
committerJeff Genovy <29107334+jefgen@users.noreply.github.com>
Wed, 19 Feb 2020 22:57:59 +0000 (14:57 -0800)
commitcaa25fd8783ed193c805c8e8546c36aee5d0de7b
tree78d0c6957fc4eef57bd4d3d8d30b1577b92c3cbf
parent4a3a457b38cd828b7b3fa4fdbc6e2504a57275e9
ICU-20842 Fix library names in pkg-config files  on Windows (mingw-w64)

since the move of the DLL to bin/ the library names in .pc files is
wrong. With ICU 65.1, icu-uc.pc contains

Libs: -L${libdir} -licuuc65 -licudt65

the version number should not appear. Indeed, the linker looks for the
libraries in $prefix/lib in the following order (see [1]):

libxxx.dll.a
xxx.dll.a
libxxx.a
cygxxx.dll
libxxx.dll
xxx.dll

As the is only the import library with no versioning (which is normal),
the is a link error when using ICU pc files.

[1] https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Using_ld_the_GNU_Linker/win32.html
icu4c/source/config/mh-mingw
icu4c/source/config/mh-mingw64