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.
Okay, I'll start with the assumption you outlined above
and we will correct if there happens to be some platforms
where there is something else used instead of ld.
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.
Makes sense.
Brgds,
Viktor
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour