libtool
[Top][All Lists]
Advanced

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

Re: improve support for building DLLs on cygwin and mingw


From: Bruno Haible
Subject: Re: improve support for building DLLs on cygwin and mingw
Date: Thu, 7 Sep 2006 16:22:50 +0200
User-agent: KMail/1.9.1

Danny Smith wrote:
> Thinking more about this, the whole problem goes away with
> -funit-at-a-time and that is turned on by default at 
> optimization level of 1 or higher.

Not the whole problem, only the case of a reference in the same compilation
unit as the definition of the variable.

> It seems that this problem is really a GCC vs MSVC compiler difference
> and it should be addressed in GCC rather in libtool.

The general case of a self-reference from another compilation unit inside
the same shared library cannot be addressed in GCC, without changing the
object file format. It needs to be done in the linker or in libtool.
Ralf explained why it's better done in libtool.

Bruno




reply via email to

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