[adtools] Re: use libgcc.so instead of libgcc_s.so

  • From: Jens Langner <Jens.Langner@xxxxxxxxxxxxxx>
  • To: adtools@xxxxxxxxxxxxx
  • Date: Tue, 08 Jul 2008 10:43:37 +0200

Hello Thomas,

On Tue, 08 Jul 2008 10:27:07 +0200, Thomas Frieden wrote:

[...]
> Jens Langner wrote:
>> errors again. But when I specify -shared everything seems to work. So 
>> again, what is this "-use-dynld" all about and why aren't we using 
>> "-shared" instead for linking an application against shared objects?
>
> Because -shared is NOT about linking an application against shared 
> objects. -shared is used to _create_ dynamically linked objects.

Perhaps there is a difference between using that option during compilation or
during linkage?

> -use-dynld is used to instruct the linker to link against shared objects.

Ok. but when I use only "-use-dynld" during linkage I still get an error about
un unresolved symbol against "_Unwind_SjLj_GetIPInfo" in libgcc_eh.a. And as
soon as I add "-shared" everything is resolved fine and the binary works as
expected.

> Not that this is a big difference- Usually (on Linux), -shared is also 
> needed, but the compiler links against shared objects by default.

Well, but as I pointed out, if there is a libgcc.a and libgcc.so it seems that
when "-shared" is specified it still links statically against libgcc.a
instead of using the shared version of libgcc. So perhaps our renaming of
libgcc_s.so to libgcc.so isn't doing so good?!?

cheers,
jens
-- 
Jens Langner, Dresden/Germany
http://www.jens-langner.de/

If builders built buildings the way programmers wrote programs,
then the first woodpecker that came along would destroy civilization.
-- Weinberg's Second Law

______________________________________________________________________________
Amiga Development tools ML - //www.freelists.org/list/adtools
Homepage...................: http://www.sourceforge.net/projects/adtools
Listserver help............: mailto:adtools-request@xxxxxxxxxxxxx?Subject=HELP

Other related posts: