On Wed, Aug 26, 2009 at 1:01 AM, Cristi MagherusanCristi.Magherusan@net.utcluj.ro wrote:
There are a few approaches for fixing this, like: -link against libgcc (statically)
Won't work on FC11.
From a note on 9fans:
============= also, i discovered something new today:
"... decided to link everything dynamically. To enforce this (allmost) all static libraries are removed (or not even build)..."
$ gcc t.c -static /usr/bin/ld: cannot find -lc collect2: ld returned 1 exit status ==============
-implement the needed functions ourselves (copied from libgcc)
I vote for this one. Every time we count on stable (or even sane) behavior from all linux distros or gnu toolchain, we get burned. I think we need to be as standalone as possible.
There are, what, four functions at issue?
What really amazes me is that with all the inlining that is done nowadays, these trivial functions are not inlined!
ron