libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Forced static lib if any depend lib is static on win32


From: Evgeny Grin
Subject: Forced static lib if any depend lib is static on win32
Date: Thu, 17 Apr 2014 23:06:44 +0400

Hi!

Win32 libs is forced to be static if any dened lib is not shared.
If it's done to prevent symbols conflicts on several shared libs with same 
static lib. But if DEF file is used or dllexport function attribute is used, ld 
will not export functions from static lib if no "--export-all-symbols" is 
specified. Same with -fvisibility=hidden on non-Win32 platforms.
Usually on Win32 libs are distributed in binary form and dll hell is a problem 
for projects with many depends libs as for example almost every lib use 
zlib.dll, but different zlib.dll is not abi compatible. So it can be wise to 
statically link libs for some shared lib.
Is it possible to support such configuration in libtool?

Best Wishes,
Evgeny



reply via email to

[Prev in Thread] Current Thread [Next in Thread]