# restore sonames by default when using zig cli · gitcafe/zig

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

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

Visibility: public

Requested revision: c3b0182f31c874eb9f1bb21397debdfdbf6161d3

Requested commit: c3b0182f31c874eb9f1bb21397debdfdbf6161d3

Commit: c3b0182f31c874eb9f1bb21397debdfdbf6161d3

Tree: 45a3a65f31c53e6839e27aa831f8cd49d9e8b9a4

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
restore sonames by default when using zig cli

Before this commit, the branch regressed this case:

zig build-lib foo.zig -dynamic
readelf -d libfoo.so
 x000000000000000e (SONAME) Library soname: [libfoo.so]

Now it works again, but it preserves the property that using `zig cc`
has the SONAME off by default to match C compilers.

```

## Parents

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

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