Andrew Kelley 4e5a88b288 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
2021-11-20 17:23:44 -07:00
..
2021-10-16 21:55:51 +01:00
2021-11-15 16:32:15 -07:00
2021-10-16 21:55:51 +01:00
2021-10-05 23:05:14 -07:00
2021-09-24 13:39:20 -04:00