From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Problems compiling on Archlinux 64 Date: Wed, 22 Nov 2006 10:48:44 -0500 Message-ID: <87fycbo52b.fsf@cyd.mit.edu> References: <200611212055.01073.manveru@weez-int.com> <874psswt1o.fsf@cyd.mit.edu> <200611221029.57786.manveru@weez-int.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164211509 1104 80.91.229.2 (22 Nov 2006 16:05:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Nov 2006 16:05:09 +0000 (UTC) Cc: Giorgos Keramidas , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 22 17:05:07 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 1Gmuae-0001XE-0s for ged-emacs-devel@m.gmane.org; Wed, 22 Nov 2006 17:04:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gmuad-0007rS-Lw for ged-emacs-devel@m.gmane.org; Wed, 22 Nov 2006 11:04:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GmuL1-0003oS-00 for emacs-devel@gnu.org; Wed, 22 Nov 2006 10:48:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GmuKw-0003kU-KG for emacs-devel@gnu.org; Wed, 22 Nov 2006 10:48:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmuKw-0003kA-BA for emacs-devel@gnu.org; Wed, 22 Nov 2006 10:48:34 -0500 Original-Received: from [18.19.1.138] (helo=cyd.mit.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GmuKv-0001KS-LH for emacs-devel@gnu.org; Wed, 22 Nov 2006 10:48:34 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 77CEE4E453; Wed, 22 Nov 2006 10:48:44 -0500 (EST) Original-To: Michael Fellinger In-Reply-To: <200611221029.57786.manveru@weez-int.com> (Michael Fellinger's message of "Wed\, 22 Nov 2006 10\:29\:57 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) 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:62676 Archived-At: Does this completely untested patch give good results (you'll have to regenerate configure to test it, of course)? *** emacs/configure.in.~1.418.~ 2006-11-14 10:54:05.000000000 -0500 --- emacs/configure.in 2006-11-22 10:42:46.000000000 -0500 *************** *** 1485,1490 **** --- 1485,1500 ---- AC_SYS_LARGEFILE + ### The standard library on x86-64 GNU/Linux distributions can + ### be located in either /usr/lib64 or /usr/lib. + case "${canonical}" in + x86_64-*-linux-gnu* ) + if test -d /usr/lib64; then + AC_DEFINE(HAVE_X86_64_LIB64_DIR, 1, + [Define to 1 if the file /usr/lib64 exists.]) + fi + esac + dnl This function defintion taken from Gnome 2.0 dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not) dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page *** emacs/src/m/amdx86-64.h.~1.11.~ 2006-10-30 09:06:42.000000000 -0500 --- emacs/src/m/amdx86-64.h 2006-11-22 10:44:40.000000000 -0500 *************** *** 128,134 **** --- 128,138 ---- #else /* !__OpenBSD__ && !__FreeBSD__ */ #undef START_FILES + #ifdef HAVE_X86_64_LIB64_DIR #define START_FILES pre-crt0.o /usr/lib64/crt1.o /usr/lib64/crti.o + #else + #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o + #endif /* The duplicate -lgcc is intentional in the definition of LIB_STANDARD. The reason is that some functions in libgcc.a call functions from libc.a, *************** *** 136,142 **** --- 140,150 ---- versions of ld are one-pass linkers, we need to mention -lgcc twice, or else we risk getting unresolved externals. */ #undef LIB_STANDARD + #ifdef HAVE_X86_64_LIB64_DIR #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib64/crtn.o + #else + #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o + #endif #endif /* __FreeBSD__ */