# breaking: remove \-\-static; add \-dynamic · gitcafe/zig

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

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

Visibility: public

Requested revision: 5d2edac12dc9eec626977a5bf9b0630504b28c15

Requested commit: 5d2edac12dc9eec626977a5bf9b0630504b28c15

Commit: 5d2edac12dc9eec626977a5bf9b0630504b28c15

Tree: 07df535ed5e89f616d064ca0facf8941d59681b7

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
breaking: remove --static; add -dynamic

`--static` is no longer an option. Instead, Zig makes things as static
as possible by default. `-dynamic` can be used to choose a dynamic
library rather than a static one.

`--enable-pic` is a new option. Usually it will be enabled
automatically, but in the case of build-exe with no dynamic libraries
on Linux or freestanding, Zig chooses off by default.

closes #1703
closes #1828

```

## Parents

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

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