libtool
[Top][All Lists]
Advanced

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

Re: Should libtool link in libgcc when building a shared library?


From: Bob Friesenhahn
Subject: Re: Should libtool link in libgcc when building a shared library?
Date: Wed, 23 Mar 2005 16:33:32 -0600 (CST)

On Wed, 23 Mar 2005, Steve Ellcey wrote:

libtool certainly would not want to explicitly add '-lgcc' to a link
line, my question is why libtool goes out of its way to remove '-lgcc'
(by using the -nostdlib option).  The issue of different compilers does
not seem to apply here because we know we are using GCC (otherwise we
couldn't add -nostdlib).

From the beginning, libtool took the approach that it knew best. It
would glean the list of libraries that the compiler would supply, extend the list, and then do the link using the system linker.

More recently, libtool has started to change its approach. For C++, linking is already done using the compiler. I believe that this has started to change for C as well. It is a gradual process since care must be taken to not break something which already works.

Bob
======================================
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/




reply via email to

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