From: prj@po.cwru.edu (Paul Jarc)
Subject: Emacs 21.2 uses ld instead of gcc for linking
Date: Thu, 11 Apr 2002 14:31:58 -0400 [thread overview]
Message-ID: <m38z7um6h7.fsf@multivac.cwru.edu> (raw)
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
next reply other threads:[~2002-04-11 18:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-11 18:31 Paul Jarc [this message]
2002-04-12 6:51 ` Emacs 21.2 uses ld instead of gcc for linking Eli Zaretskii
2002-04-12 15:52 ` Paul Jarc
2002-04-12 18:49 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m38z7um6h7.fsf@multivac.cwru.edu \
--to=prj@po.cwru.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.