# std, stage1: make shared library versioning optional · gitcafe/zig

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

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

Visibility: public

Requested revision: 0a76a9bd738471e2edddf71a822ff76c47bfd094

Requested commit: 0a76a9bd738471e2edddf71a822ff76c47bfd094

Commit: 0a76a9bd738471e2edddf71a822ff76c47bfd094

Tree: 42ae5920d24aadd42f0dcfad1b902465f09b3b9f

Author: Isaac Freund

Committer: Isaac Freund

## Message

```
std, stage1: make shared library versioning optional

This commit changes the behavior of stage1 to emit libfoo.so instead
of libfoo.so.0.0.0 when none of the --ver-major, --ver-minor, or
--ver-patch flags are set.

It also makes it possible to create unversioned shared libraries
using the zig build system, changing the version parameter of
addSharedLibrary() to a tagged union.

```

## Parents

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

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