# macho: allow undefined symbols in dylibs · gitcafe/zig

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

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

Visibility: public

Requested revision: dbfcebf8d88b91c5a85366da09a4ce69c0bb5dc6

Requested commit: dbfcebf8d88b91c5a85366da09a4ce69c0bb5dc6

Commit: dbfcebf8d88b91c5a85366da09a4ce69c0bb5dc6

Tree: e8f255a5277c428a2f598a6352a1d3b04f6c19ea

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
macho: allow undefined symbols in dylibs

We now respect both `-fallow-shlib-undefined` and
`-Wl,"-undefined=dynamic_lookup"` flags. This is the first step
towards solving issues #8180 and #3000. We currently do not expose
any other ld64 equivalent flag for `-undefined` flag - we basically
throw an error should the user specify a different flag. Support for
those is conditional on closing #8180. As a result of this change,
it is now possible to generate a valid native Node.js addon with Zig
for macOS.

```

## Parents

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

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