# stage2: Change libc components' linking order · gitcafe/zig

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

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

Visibility: public

Requested revision: 2bb8e1ff550ef2b2676e4f7ec3fdaf17aee8d715

Requested commit: 2bb8e1ff550ef2b2676e4f7ec3fdaf17aee8d715

Commit: 2bb8e1ff550ef2b2676e4f7ec3fdaf17aee8d715

Tree: 968872435a832f456ba52d54ac51c9b1c5dc0939

Author: LemonBoy

Committer: LemonBoy

## Message

```
stage2: Change libc components' linking order

Use the same order as Clang (and, by extension, GCC) for the three most
important libc components: lm comes first, followed by lpthread and then
lc.

```

## Parents

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

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