From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Alfred M. Szmidt" Newsgroups: gmane.emacs.devel Subject: OpenBSD build failure Date: Wed, 22 Nov 2006 13:20:18 +0100 (CET) Message-ID: <20061122122018.6317E44065@Psilocybe.Update.UU.SE> Reply-To: ams@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1164200307 22798 80.91.229.2 (22 Nov 2006 12:58:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Nov 2006 12:58:27 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 22 13:58:23 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GmrgA-0004vF-Lz for ged-emacs-devel@m.gmane.org; Wed, 22 Nov 2006 13:58:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmrSe-0004fU-Uc for ged-emacs-devel@m.gmane.org; Wed, 22 Nov 2006 07:44:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GmrRw-0004XB-Ph for emacs-devel@gnu.org; Wed, 22 Nov 2006 07:43:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GmrRr-0004QO-QA for emacs-devel@gnu.org; Wed, 22 Nov 2006 07:43:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmrRq-0004Pg-Em for emacs-devel@gnu.org; Wed, 22 Nov 2006 07:43:30 -0500 Original-Received: from [199.232.41.67] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Gmr5R-0006Jb-J5 for emacs-devel@gnu.org; Wed, 22 Nov 2006 07:20:21 -0500 Original-Received: from [130.238.19.25] (helo=Psilocybe.Update.UU.SE) by mx20.gnu.org with esmtp (Exim 4.52) id 1Gmr5P-0001wM-Vr for emacs-devel@gnu.org; Wed, 22 Nov 2006 07:20:20 -0500 Original-Received: by Psilocybe.Update.UU.SE (Postfix, from userid 30270) id 6317E44065; Wed, 22 Nov 2006 13:20:18 +0100 (CET) Original-To: emacs-devel@gnu.org 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:62660 Archived-At: The build failure that I reported in the beginning of November wasn't fixed (probobly due me not testing the patch). I have no tested it, and emacs builds fine on OpenBSD with it. It follows Richards suggestion to set LD_SWITCH_X_DEFAULT instead of LD_SWITCH_SYSTEM. Could someone apply it, please? 2006-11-02 Alfred M. Szmidt (tiny change) * s/openbsd.h (LD_SWITCH_SYSTEM): Remove /usr/pkg/lib and /usr/pkg/lib from the library search path. (LD_SWITCH_X_DEFAULT): New macro. Index: openbsd.h =================================================================== RCS file: /cvsroot/emacs/emacs/src/s/openbsd.h,v retrieving revision 1.8 diff -u -p -r1.8 src/s/openbsd.h *** src/s/openbsd.h 30 Oct 2006 23:05:35 -0000 1.8 --- src/s/openbsd.h 2 Nov 2006 14:05:03 -0000 *************** *** 23,33 **** /* Han Boetes says this is necessary, otherwise Emacs dumps core on elf systems. */ ! #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp -Z -L/usr/pkg/lib -L/usr/local/lib #else ! #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp -L/usr/pkg/lib -L/usr/local/lib #endif --- 24,40 ---- /* Han Boetes says this is necessary, otherwise Emacs dumps core on elf systems. */ ! #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp -Z ! ! /* The version of gcc on OpenBSD doesn't search /usr/local/lib by ! default. */ ! #define LD_SWITCH_X_DEFAULT -L/usr/local/lib #else ! #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp ! ! #define LD_SWITCH_X_DEFAULT -L/usr/local/lib #endif