From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: 22.0.98 build problem Date: Thu, 26 Apr 2007 03:27:13 -0400 Message-ID: References: <20070422191903.730AC142B0@owie.localdomain> <20070423194047.BE12630136@Psilocybe.Update.UU.SE> <20070426041606.25742142E4@owie.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1177572610 4795 80.91.229.12 (26 Apr 2007 07:30:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 Apr 2007 07:30:10 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Ryan Yeske Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 26 09:30:07 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HgyQW-0003cl-NW for ged-emacs-devel@m.gmane.org; Thu, 26 Apr 2007 09:30:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HgyWE-0005nl-Ew for ged-emacs-devel@m.gmane.org; Thu, 26 Apr 2007 03:35:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HgyWA-0005nL-VQ for emacs-devel@gnu.org; Thu, 26 Apr 2007 03:35:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HgyWA-0005my-BO for emacs-devel@gnu.org; Thu, 26 Apr 2007 03:35:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HgyW9-0005mt-Ou for emacs-devel@gnu.org; Thu, 26 Apr 2007 03:35:53 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HgyQR-0002a1-8s for emacs-devel@gnu.org; Thu, 26 Apr 2007 03:29:59 -0400 Original-Received: from [127.0.0.1] (helo=localhost) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HgyNm-0003rU-B3; Thu, 26 Apr 2007 03:27:14 -0400 X-Spook: broadside 9705 Samford Road interception Dateline X-Ran: 5@k)^K}kY}We^R'GV;{SU.1e#u{FGmfi|_IU4R]/|:`SXVV]FNRmf*Z& (Ryan Yeske's message of "Wed, 25 Apr 2007 21:16:06 -0700 (PDT)") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:70166 Archived-At: Ryan Yeske wrote: > That is true, if I add -nostdlib to the Makefile by hand, I can build. > > It is not very clear to me what needs to be changed to add -nostdlib > for this platform. What is the condition? I ran "configure --build=powerpc-unknown-openbsd4.0", which is probably not a totally faithful simulation of what you are doing, but configure correctly picked up the definition of LINKER from s/netbsd.h and used this to set LD=$(CC) -nostartfiles in src/Makefile.in. This is apparently equivalent to -nostdlib on your platform. So the relevant question might be, why did this not happen for you? Maybe the code in m/macppc.h: #if defined(__OpenBSD__) #define ORDINARY_LINK #endif defines ORDINARY_LINK, which looks like it would cause Makefile.in to set LD = $(CC). This could all be total junk, so don't invest too much time on the basis of this. Does it work if you delete those lines from macppc.h? Up to 7 years ago (!) ORDINARY_LINK was also defined for NetBSD. Maybe it should no longer be defined on OpenBSD either. Hand-wave, hand-wave.