This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Ada] darwin fix wrt -static/shared-libgcc
> >On darwin, -shared-libgcc or -static-libgcc must be explicitly
> >provided
> >at link time with GCC 4 for any program to work.
>
> Sounds like a bug. Sounds like it should be fixed where the bug
> lies, not worked around in gnatlink.adb. I don't have any clue what
> a testcase for this might look like. I'm not aware of any issues or
> problems in this area for any language. Can you describe it or show
> us a C/C++ testcase?
You need exceptions (so e.g. C++), and then GCC will force you to
use either -shared-libgcc or -static-libgcc to link, otherwise things do not
work.
I believe this was discussed in the past, and that people ended up saying
"that's the way it is, because of backward compatibility, etc...", so
we basically had little choice but to patch this in gnatlink.
Arno