Skip to content

Commit

Permalink
docs: small cleanups and clarifications to setting the dynamic linker…
Browse files Browse the repository at this point in the history
… [skip ci]

Fixes mesonbuild#6510
  • Loading branch information
dcbaker authored and jpakkane committed Jan 27, 2020
1 parent a493761 commit b16a7ff
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/markdown/howtox.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ native-files and the latter via the cross file only.

## Set dynamic linker

Like the compiler, the linker is selected via the <compiler variable>_LD
*New in 0.53.0*

Like the compiler, the linker is selected via the `<compiler variable>_LD`
environment variable, or through the `<compiler entry>ld` entry in a native
or cross file. You must be aware of whether you're using a compiler that
invokes the linker itself (most compilers including GCC and Clang) or a
Expand All @@ -38,8 +40,8 @@ to pass to the compiler's special argument (such as `-fuse-ld` with clang and
gcc), with the latter it should be an executable, such as `lld-link.exe`.

*NOTE* In meson 0.53.0 the `ld` entry in the cross/native file and the `LD`
environment variable was used, this resulted in a large number of regressions
and was changed.
environment variable were used, this resulted in a large number of regressions
and was changed in 0.53.1 to `<lang>_ld` and `<comp variable>_LD`.

```console
$ CC=clang CC_LD=lld meson <options>
Expand Down

0 comments on commit b16a7ff

Please sign in to comment.