From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.emacs.bugs Subject: Emacs 21.2 uses ld instead of gcc for linking Date: Thu, 11 Apr 2002 14:31:58 -0400 Organization: What did you have in mind? A short, blunt, human pyramid? Sender: bug-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1018550014 30166 127.0.0.1 (11 Apr 2002 18:33:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 11 Apr 2002 18:33:34 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16vjO1-0007qQ-00 for ; Thu, 11 Apr 2002 20:33:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16vjO0-0006Nk-00; Thu, 11 Apr 2002 14:33:32 -0400 Original-Received: from chi6-1.relay.mail.uu.net ([199.171.54.98]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16vjMX-0005zN-00 for ; Thu, 11 Apr 2002 14:32:01 -0400 Original-Received: from eeyore.INS.cwru.edu by chi6sosrv13.alter.net with ESMTP (peer crosschecked as: eeyore.INS.CWRU.Edu [129.22.8.17]) id QQmkdu11600 for ; Thu, 11 Apr 2002 18:32:00 GMT Original-Received: by eeyore.INS.cwru.edu (8.9.3/CWRU-2.8-bsdi) id OAA05269; Thu, 11 Apr 2002 14:31:59 -0400 (EDT) (from news for gnu-emacs-bug@moderators.isc.org) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 23 Original-NNTP-Posting-Host: multivac.student.cwru.edu Original-X-Trace: eeyore.INS.cwru.edu 1018549918 5267 129.22.96.25 (11 Apr 2002 18:31:58 GMT) Original-X-Complaints-To: abuse@po.cwru.edu Original-NNTP-Posting-Date: 11 Apr 2002 18:31:58 GMT User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/20.7 (i386-redhat-linux-gnu) Cancel-Lock: sha1:sTCkFn5dIJSC6Gl3Eo+qMDTq2sI= Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:573 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:573 I'm using gcc 3.0.4, binutils 2.12, and RedHat's glibc 2.2.4-19.3. Emacs 21.2's build process uses ld for linking in some cases and gcc for others. This limits the usefulness of user-specified LDFLAGS: ld does not understand -Wl, options, and gcc does not understand most ld options. There are also some things that ld does wrong when invoked directly instead of via gcc: my gcc is installed with its own unusual prefix, so ld cannot find libgcc unless I specify the path with -L in LDFLAGS. ld also seems to use the wrong path for the dynamic linker; the symptom was: LC_ALL=C ./temacs -batch -l loadup dump /bin/sh: ./temacs: No such file or directory temacs did exist, but the dynamic linker path compiled into it was /usr/lib/libc.so.1, which does not exist on my system. I had to create it as a symlink to /lib/ld-linux.so.2. It seems to me gcc should be used for linking in all cases. paul