From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.devel Subject: Re: RFC: Support for FreeBSD/amd64 Date: Sat, 29 Oct 2005 01:01:11 +0300 Message-ID: <20051028220111.GA20317@flame.pc> References: <20051026235224.GA55408@flame.pc> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130536944 11973 80.91.229.2 (28 Oct 2005 22:02:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Oct 2005 22:02:24 +0000 (UTC) Cc: Frank Schmitt , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 29 00:02:10 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EVcIC-0005MV-W0 for ged-emacs-devel@m.gmane.org; Sat, 29 Oct 2005 00:01:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EVcIC-0002zx-17 for ged-emacs-devel@m.gmane.org; Fri, 28 Oct 2005 18:01:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EVcI0-0002zs-Gw for emacs-devel@gnu.org; Fri, 28 Oct 2005 18:01:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EVcHz-0002zf-09 for emacs-devel@gnu.org; Fri, 28 Oct 2005 18:01:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EVcHy-0002zc-T7 for emacs-devel@gnu.org; Fri, 28 Oct 2005 18:01:30 -0400 Original-Received: from [80.76.39.13] (helo=mail.vivodinet.gr) by monty-python.gnu.org with smtp (Exim 4.34) id 1EVcHy-00050a-9i for emacs-devel@gnu.org; Fri, 28 Oct 2005 18:01:30 -0400 Original-Received: (qmail 6771 invoked from network); 28 Oct 2005 22:01:20 -0000 Original-Received: from dslcustomer-222-89.vivodi.gr (HELO flame.pc) (83.171.222.89) by 0 with SMTP; 28 Oct 2005 22:01:20 -0000 Original-Received: from flame.pc (flame [127.0.0.1]) by flame.pc (8.13.4/8.13.4) with ESMTP id j9SM1BYB020615; Sat, 29 Oct 2005 01:01:11 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Original-Received: (from keramida@localhost) by flame.pc (8.13.4/8.13.4/Submit) id j9SM1B64020614; Sat, 29 Oct 2005 01:01:11 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Original-To: "Richard M. Stallman" Content-Disposition: inline In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:45052 Archived-At: On 2005-10-28 14:09, "Richard M. Stallman" 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. Something like this perhaps? http://people.freebsd.org/~keramida/emacs/22/freebsd-amd64+libgcc.patch I took the liberty of adding a comment to the __FreeBSD__ #ifdef for the location of the 64-bit libraries.