# macho: fix various linker flags · gitcafe/zig

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

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

Visibility: public

Requested revision: a502c160cd51ce3de80b3be945245b7a91967a85

Requested commit: a502c160cd51ce3de80b3be945245b7a91967a85

Commit: a502c160cd51ce3de80b3be945245b7a91967a85

Tree: 3da5d0105e43b3f92906ef02261afee449840c82

Author: Michael Dusan

Committer: Andrew Kelley

## Message

```
macho: fix various linker flags

fix drivers: zig {cc,c++}
  - `-dynamiclib` is an alias to `-shared`
  - associate `-dynamiclib` with zig `.shared` semantics

fix drivers: zig {cc,c++,build-lib,build-exe}
  - use `-dynamic` for {exe,dylib}
  - for dylib this fixes a regression
  - for exe this replaces incorrect use of `-static`

```

## Parents

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

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