public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Different linking behavior between g++ 4.5.2 and 4.6.1
@ 2011-11-16  1:00 Manuel López-Ibáñez
  2011-11-16  1:26 ` Jonathan Wakely
  0 siblings, 1 reply; 2+ messages in thread
From: Manuel López-Ibáñez @ 2011-11-16  1:00 UTC (permalink / raw)
  To: Andrew Pinski
  Cc: gcc-help, Carlo Pinciroli, Jonathan Wakely, Ian Lance Taylor, doko

Hi Andrew and Jonathan (cc: Ian and Matthias since they discussed this
issue recently),

Perhaps we should add a new entry to the FAQ at the wiki about this.
We have seen a few questions already in gcc-help, and it seems it is
going to be a frequent issue with the most recent major distros:

http://gcc.gnu.org/ml/gcc-help/2011-11/msg00132.html
https://lists.ubuntu.com/archives/ubuntu-devel/2010-November/031991.html
https://wiki.ubuntu.com/NattyNarwhal/ToolchainTransition
http://wiki.debian.org/ToolChain/DSOLinking#Onlylinkwithneededlibraries
http://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking

I could add it myself, but I am not sure how to summarize the problem
and, in particular, it doesn't seem to me that "just use
--no-as-needed" is the correct answer.

http://gcc.gnu.org/wiki/FAQ

Cheers,

Manuel.

On -10/01/37 20:59, Carlo Pinciroli wrote:
> Thank you very much Andrew, your suggestion indeed solved the problem.
> And thanks also for your fast answer! :-)
>
> Cheers,
> Carlo
>
> On Tue, Nov 15, 2011 at 6:49 PM, Andrew Pinski<pinskia@gmail.com>  wrote:
>> On Tue, Nov 15, 2011 at 9:34 AM, Carlo Pinciroli<ilpincy@gmail.com>  wrote:
>>>
>>> Dear forum,
>>>
>>> I have a problem with linking of a program I have wrote. Instead of giving
>>> you the entire program, which is pretty large, I have prepared a basic
>>> example that you can find attached to this message. The example uses CMake
>>> to compile.
>>>
>>> I have three files:
>>
>> Sounds like --as-needed is the default with the linker you are using.
>> That is GCC is not the issue but rather the defaults with the distros
>> you are using are different.
>>
>> Thanks,
>> Andrew Pinski
>>
>
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-16  0:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-16  1:00 Different linking behavior between g++ 4.5.2 and 4.6.1 Manuel López-Ibáñez
2011-11-16  1:26 ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).