[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Mingw-cross-env-list] Building dynamic libs (was: Anyway to remove inst
From: |
Tony Theodore |
Subject: |
[Mingw-cross-env-list] Building dynamic libs (was: Anyway to remove installed packages ?) |
Date: |
Wed, 24 Apr 2013 10:57:05 +1000 |
On 24/04/2013, at 2:20 AM, Huang KangJing <address@hidden> wrote:
> Also, I noticed that MXE would only link staticly. For quite a long
> time, static link worked fine for me, but recently I met with some
> situation that I would have to use dynamic linking.
>
> I know MXE would not support dynamic linking, but as I am not familiar
> with libarary configuration, I wonder if anyone can give me any
> general instructions on how to modify *.mk files to make them build
> dynamic dlls.
The general way would be to toggle the "--disable-shared --enable-static"
configure options, but you'd need to watch out for patches that are specific to
static linking (e.g. atk-1-DllMain.patch, pthreads-1-fixes.patch) and different
configuration systems (any of the cmake packages, qt, zlib).
mxe-octave has an interesting approach to create a shared lib from a static
one[1] and also a shared qt[2], though I haven't tried using it.
Cheers,
Tony
[1] http://hg.octave.org/mxe-octave/file/tip/tools/make-shared-from-static
[2] http://hg.octave.org/mxe-octave/file/tip/src/qt.mk