# stage2: build and provide libunwind when compiling for native libc · gitcafe/zig

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

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

Visibility: public

Requested revision: a7aa3ca66c271bc6f2905e4c3f0dd78763584d5b

Requested commit: a7aa3ca66c271bc6f2905e4c3f0dd78763584d5b

Commit: a7aa3ca66c271bc6f2905e4c3f0dd78763584d5b

Tree: 24e232f653f0e57b9c5d988cd3e10ccf842add65

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: build and provide libunwind when compiling for native libc

5ac91794cce8bd53916a378815be01e4365d53d9 made Zig link against the
system libc when targeting the native C ABI. However this made it stop
putting libunwind.a on the linker line when it needed to sometimes,
causing undefined symbols when linking against C++ code.

```

## Parents

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

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