Skip to content

Feature: ld formula for Linux #4634

Closed Answered by ZhongRuoyu
osalbahr asked this question in Linux
Discussion options

You must be logged in to vote

ld is shipped on Linux. The problem is that it is keg-only so you won't find it in "$(brew --prefix)/bin".

You may use "$(brew --prefix binutils)"/bin/ld:

$ "$(brew --prefix binutils)"/bin/ld --version
GNU ld (GNU Binutils) 2.40
Copyright (C) 2023 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

Or, follow the caveats found in brew info binutils to have ld and other binutils executables first in your PATH. Do this with care as that may shadow the host toolchain.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@osalbahr
Comment options

@osalbahr
Comment options

Answer selected by osalbahr
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Linux
Labels
None yet
2 participants