This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/7769: using static libraries sometimes loses staticinitialization


On Thu, 19 Dec 2002, Hal Black wrote:

> >     This is not a bug. When you want that a particular 
> >     object file (possibly within an archive) is pulled into you
> >     executable for sure, then you have to reference an object
> >     inside it.
> 
> This is a bug.
> [...]
> Correct, the compiler is fine, it is the linker that is not working 
> correctly under the circumstances described above.

This is just how Unix has worked forever. If you want that changed, file a 
report with the binutils people, but I think this is just how it is.

W.

-------------------------------------------------------------------------
Wolfgang Bangerth              email:           bangerth@ticam.utexas.edu
                               www: http://www.ticam.utexas.edu/~bangerth



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]