When libtool create a shared library (dll) for mingw host the name of
dll is created in format ${libname}${versuffix}.dll , where ${versuffix}
is in format -N ("-$major").
The application in this project (xmlsec1.exe) try to open this library
with methods from libltdl
but search for name ${libname}${versufix}.dll .
What is best way to solve this problem ?
- to add an install hook in Makefile and rename library;
- to patch libtool (to add mingw in case after "# Calculate the version
variables" and may be to modify calculation of suffix after comment "#
bleh windows";
- to pass required name to libtool ( but how to do this );
- other ?
In this case required name is in format ${libname}.dll without suffix,
since this name is compatible
to already existing builds from other compilers.
Solution with install hook is a work around.
As far is possible current behavior to be changed do not use ${versuffix} ?
libtool(ltmain.sh) is version 1.5.22.
The command is:
.../libtool --silent --tag=CC --mode=link i386-mingw32msvc-gcc ... -o
libxmlsec1-openssl.la ... -no-undefined ... -version-info 3:10:2 <list
of *.lo> <libraries and libpaths>
The name of created dll is libxmlsec1-openssl-1.dll, and "-1" in name is
problem. Without -version-info name is libxmlsec1-openssl-0.dll .
Roumen