libtool-patches
[Top][All Lists]
Advanced

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

Re: [PATCH] tests: import variables for MSVC.


From: Charles Wilson
Subject: Re: [PATCH] tests: import variables for MSVC.
Date: Sat, 25 Sep 2010 00:47:10 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

On 9/24/2010 2:53 PM, Ralf Wildenhues wrote:
>> Den 2010-09-24 19:30 skrev Charles Wilson:
>>> That is the typical approach.  The drawback -- usually an acceptable one
>>> -- is that if you are building a "stack" of dependent DLLs:
>>>
>>> EXE --> C.DLL -> B.DLL
>>>     --> A.DLL
>>>
>>> Then (a) you must link exe using .obj's compiled as pic (e.g. with
>>> -DDLL_EXPORT, even tho the EXE *itself* is not a "shared library").
>>> libtool does this by default IIRC.
> 
> Huh?  But automake won't go this way usually.  With
> 
>   bin_PROGRAMS = foo
>   foo_SOURCES = foo.c
>   foo_LDADD = libc.la
> 
> foo will be linked with foo.o (*not* created by libtool), and neither
> foo.lo nor .libs/foo.o will ever be created.

Err...maybe you are right.  I've been so used to auto-import (and now,
even the warnings are suppressed with modern cygwin and mingw
gcc/binutils), that I'm just used to it simply working.

If I understand the process, the above would fail if libc.la had a
shared library, but we linked foo using -disable-auto-import (e.g. or we
were talking about MSVC.)

More in my reply to Peter's message.

--
Chuck





reply via email to

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