[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libtool, mingw host and dll name
From: |
Roumen Petrov |
Subject: |
libtool, mingw host and dll name |
Date: |
Thu, 28 Jun 2007 23:20:27 +0300 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070306 SeaMonkey/1.0.8 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- libtool, mingw host and dll name,
Roumen Petrov <=