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

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

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

Visibility: public

Requested revision: 4b59f564344598b4d1f1a51839a4dc5cbf357012

Requested commit: 4b59f564344598b4d1f1a51839a4dc5cbf357012

Commit: 4b59f564344598b4d1f1a51839a4dc5cbf357012

Tree: ac1567c2e4fdbde343b30150b0fd42e3742e2a08

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

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

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