On Sun, 20 Sep 2009, Szak�ts Viktor wrote:
>> You're right. I'll add it to all places where ld is used.
> First question popped in quickly:
> How can I be sure which targets use system linker (ld)
> to do its job?

I'm think that the only one way is to check in compiler documentation.

In most of cases in *nixes C compilers call platform native linker
with some additional parameters if necessary. The only exception are
compilers like OpenWatcom which comes with own alternative set
of C headers and CRTL libraries not compatible with system ones but
it's rather seldom situation.

> We never call ld directly, we always call it through gcc.
> Maybe we should change this also to direct ld calls. It
> would seem cleaner to me and it would also clear above
> question without any doubts.

I do not think that calling ld directly is good idea. Sometimes
C compiler have to pass some additional parameters to inform linker
about some settings necessary for compiled binaries and/or CRTL
libraries and calling LD directly we will not pass such parameters
so we can create some serious problems.

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to