From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: RFC: Support for FreeBSD/amd64 Date: Thu, 27 Oct 2005 21:08:32 +0200 Message-ID: References: <20051026235224.GA55408@flame.pc> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1130441079 13026 80.91.229.2 (27 Oct 2005 19:24:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2005 19:24:39 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 27 21:24:36 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EVDKK-0007sN-Rt for ged-emacs-devel@m.gmane.org; Thu, 27 Oct 2005 21:22:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EVDKK-0008NN-3T for ged-emacs-devel@m.gmane.org; Thu, 27 Oct 2005 15:22:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EVD74-0000PV-Dt for emacs-devel@gnu.org; Thu, 27 Oct 2005 15:08:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EVD71-0000PG-Ak for emacs-devel@gnu.org; Thu, 27 Oct 2005 15:08:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EVD70-0000PC-Q9 for emacs-devel@gnu.org; Thu, 27 Oct 2005 15:08:30 -0400 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EVD70-0005ws-HY for emacs-devel@gnu.org; Thu, 27 Oct 2005 15:08:30 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-83-130-246-127.inter.net.il [83.130.246.127]) by romy.inter.net.il (MOS 3.5.8-GR) with ESMTP id CUW01366 (AUTH halo1); Thu, 27 Oct 2005 21:08:28 +0200 (IST) Original-To: Frank Schmitt In-reply-to: (message from Frank Schmitt on Thu, 27 Oct 2005 08:50:05 +0200) 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:44990 Archived-At: > From: Frank Schmitt > Date: Thu, 27 Oct 2005 08:50:05 +0200 > > Giorgos Keramidas writes: > > > To bootstrap Emacs on my FreeBSD/amd64 snapshot I had to use the > > following patch -- also available at: > > http://people.freebsd.org/~keramida/emacs/22/freebsd-amd64.diff > [...] > > +#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o > [...] > > Theres -lgcc two times in above line. 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.