emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFC: Support for FreeBSD/amd64


From: Giorgos Keramidas
Subject: Re: RFC: Support for FreeBSD/amd64
Date: Sat, 29 Oct 2005 21:35:45 +0300

On 2005-10-29 12:07, Eli Zaretskii <address@hidden> wrote:
>Richard M. Stallman <address@hidden> wrote:
>>> Yes, and they both are almost certainly needed.  The reason is that
>>> some functions in libgcc.a call functions from libc.a, and some
>>> libc.a functions need functions from libgcc.a.  Since most versions
>>> of ld are one-pass linkers, you need to mention -lgcc twice, or else
>>> risk getting unresolved externals.
>>
>> Someone should add a comment above that line
>> to explain this.
>
> I don't object to such a comment, of course, but I thought this
> was common knowledge.  E.g., anyone who has ever invoked GCC
> with the -v option to build a C program already knows that GCC
> mentions -lgcc twice on the linker's command line.

The original suggestion for a comment was triggered from my own
comment that the duplicate -lgcc was probably intentional, but I
didn't know the reason.  Now I know the answer, but it may still
be worth to document it near the relevant part of the source ;-)

- Giorgos





reply via email to

[Prev in Thread] Current Thread [Next in Thread]