[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libtool + MinGW
From: |
Brian Dessent |
Subject: |
Re: libtool + MinGW |
Date: |
Sun, 11 Jun 2006 19:20:01 -0700 |
Brendon Costa wrote:
> Question: Does libtool 1.5.22 for MinGW support shared libraries and
> using DLOpened modules without dlpreopening?
Of course it supports shared libraries.
> If so in the example i gave before for a shared library was created
> using ar cru and not g++ -shared and was linked into the app as a static
> library.
No, your example was flawed because it did not pass -no-undefined, which
means you get static libraries unconditionally. If you fix that, then
libtool builds both shared and static versions of the library, and it
successfully links against the shared library libshared-0.dll. The only
one of the four that fails to build is the static plugin version, which
dies with the duplicated symbol problem.
$ ls -l
total 1737
-rwxr-xr-x 1 brian Administ 588238 Jun 11 19:08 LTDLOpened-0.dll
-rw-r--r-- 1 brian Administ 119454 Jun 11 19:08 LTDLOpened.a
-rw-r--r-- 1 brian Administ 7902 Jun 11 19:08 LTDLOpened.dll.a
-rw-r--r-- 1 brian Administ 819 Jun 11 19:08 LTDLOpened.la
-rwxr-xr-x 1 brian Administ 585327 Jun 11 19:08 libShared-0.dll
-rwxr-xr-x 1 brian Administ 465800 Jun 11 19:08 libltdl-3.dll
-rwxr-xr-x 1 brian Administ 606208 Jun 11 19:08 libtool_test.exe
-rwxr-xr-x 1 brian Administ 589161 Jun 11 19:08
libtool_test_np.exe
-rwxr-xr-x 1 brian Administ 591364 Jun 11 19:08
static_libtool_test_np.exe
> I guess i assumed that MinGW platform supported shared libraries using
> DLL's. If not are there any plans for this in the future?
Mingw would be quite useless if shared libraries did not function.
Brian