diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2019-11-19 09:30:46 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2019-12-02 16:39:06 -0800 |
commit | ef9aeb188ea2bc7353e59916c18901cde90fa2b3 (patch) | |
tree | d1525c3c53703d1adb4c077399ab39909863c7dc /docs | |
parent | 7658e67f92ba55e2d8e466f818293a001f34a65f (diff) | |
download | meson-ef9aeb188ea2bc7353e59916c18901cde90fa2b3.zip meson-ef9aeb188ea2bc7353e59916c18901cde90fa2b3.tar.gz meson-ef9aeb188ea2bc7353e59916c18901cde90fa2b3.tar.bz2 |
Allow selecting the dynamic linker
This uses the normal meson mechanisms, an LD environment variable or via
cross/native files.
Fixes: #6057
Diffstat (limited to 'docs')
-rw-r--r-- | docs/markdown/snippets/linker_override.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/markdown/snippets/linker_override.md b/docs/markdown/snippets/linker_override.md new file mode 100644 index 0000000..21cb072 --- /dev/null +++ b/docs/markdown/snippets/linker_override.md @@ -0,0 +1,17 @@ +## Generic Overrider for Dynamic Linker selection + +Previous to meson 0.52.0 you set the dynamic linker using compiler specific +flags passed via language flags and hoped things worked out. In meson 0.52.0 +meson started detecting the linker and making intelligent decisions about +using it. Unfortunately this broke choosing a non-default linker. + +Now there is a generic mechanism for doing this, you may use the LD +environment variable (with normal meson environment variable rules), or add +the following to a cross or native file: + +```ini +[binaries] +ld = 'gold' +``` + +And meson will select the linker if possible. |