diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-11-20 17:23:44 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-11-20 17:23:44 -0700 |
| commit | 4e5a88b28882eda156a46ecc7f70887a7bc0b49b (patch) | |
| tree | 1ccdc54fdb432ff72692e9f10f4f0640ef6869cd /src/Module.zig | |
| parent | a699d678b2c81dcf333a4f4bb84676836849a618 (diff) | |
| download | zig-4e5a88b28882eda156a46ecc7f70887a7bc0b49b.tar.gz zig-4e5a88b28882eda156a46ecc7f70887a7bc0b49b.zip | |
stage2: default dynamic libraries to be linked as needed
After this change, the default for dynamic libraries (`-l` or
`--library`) is to only link them if they end up being actually used.
With the Zig CLI, the new options `-needed-l` or `--needed-library` can
be used to force link against a dynamic library.
With `zig cc`, this behavior can be overridden with `-Wl,--no-as-needed`
(and restored with `-Wl,--as-needed`).
Closes #10164
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions
