# stage2: progress towards LLD linking · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/e05ecbf165931d14440e6e5d089b64788b82d14f)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: e05ecbf165931d14440e6e5d089b64788b82d14f

Requested commit: e05ecbf165931d14440e6e5d089b64788b82d14f

Commit: e05ecbf165931d14440e6e5d089b64788b82d14f

Tree: 93ec39e42c1fdc0f0949d75de95363477c6a62c8

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: progress towards LLD linking

 * add `zig libc` command
 * add `--libc` CLI and integrate it with Module and linker code
 * implement libc detection and paths resolution
 * port LLD ELF linker line construction to stage2
 * integrate dynamic linker option into Module and linker code
 * implement default link_mode detection and error handling if
   user requests static when it cannot be fulfilled
 * integrate more linker options
 * implement detection of .so.X.Y.Z file extension as a shared object
   file. nice try, you can't fool me.
 * correct usage text for -dynamic and -static

```

## Parents

- [5746a8658ea52dee4bf310c1290d76b1255cb5ec](https://git.cafe/gitcafe/zig/commit/5746a8658ea52dee4bf310c1290d76b1255cb5ec?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/e05ecbf165931d14440e6e5d089b64788b82d14f?format=markdown)
