On Sun, Oct 26, 2008 at 04:59:19PM +0100, Vincent Torri wrote:
> 
> 
> On Sun, 26 Oct 2008, Lars Munch wrote:
> 
> >IMHO it is not a libtool problem, but the problem is that evil.dll tries
> >to link to at static library (uuid in this case), which is generally
> >considered bad.
> 
> it is a libtool problem, in a manner or another. Your remark:
> 
> + * This file defines all the windows UUID used in evil. This is here
> + * since uuid.lib is a static only library and libtool does not allow
> + * you to link a DLL against a static library.
> 
> is wrong. We can link a lib against a static lib to produce a dll. Check 
> when I link against libm.a, libws2_32.a, etc... in evil or other efl lib. 
> There is no dll for those lib. But libtool detects that it is an import 
> lib (look at the function func_win32_libid() in ltmain.sh or libtool 
> scripts) and accepts to create the dll.

But there are dll's for those libs:

libws2_32.a is an import library for windows\system32\ws2_32.dll.
libole32.a is an import library for windows\system32\ole32.dll.
libsecur32.a is an import library for windows\system32\secur32.dll.

libuuid.a on the other hand is not an import library but a real static
library, hence the error when not detected as an import library.

> about the 'file' program, i didn't know.

The func_win32_libid function is different if you got the file utility
on your system (as most people do on linux). This version is actually
better at identifying a static library vs. import library.

See for instance:
http://www.cygwin.com/ml/cygwin/2003-02/msg01464.html

I went for a modified version of point 1) in my patch.

-- Lars Munch

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to