[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs 21.2 uses ld instead of gcc for linking
From: |
Eli Zaretskii |
Subject: |
Re: Emacs 21.2 uses ld instead of gcc for linking |
Date: |
Fri, 12 Apr 2002 09:51:40 +0300 |
> From: prj@po.cwru.edu (Paul Jarc)
> Newsgroups: gnu.emacs.bug
> Date: Thu, 11 Apr 2002 14:31:58 -0400
>
> 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 shouldn't happen: in a normal link, src/Makefile.in defines
either LD=$(CC) or LD="$(CC) -nostdlib", AFAICS. This works either
automatically or because your src/s/OS.h file defines ORDINARY_LINK.
So please try to find out why in your case LD was defined to `ld'
instead.
> It seems to me gcc should be used for linking in all cases.
Sure; and it does for me (but I don't have Red Hat).