# Apply cflags from pkg-config to all dependent modules · gitcafe/zig

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

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

Visibility: public

Requested revision: 27d2d8e81f03264e951ef3a7e4bb230d223f2ac2

Requested commit: 27d2d8e81f03264e951ef3a7e4bb230d223f2ac2

Commit: 27d2d8e81f03264e951ef3a7e4bb230d223f2ac2

Tree: e14955c95633427aea6770d256ed32a344dc90cf

Author: Ian Johnson

Committer: Andrew Kelley

## Message

```
Apply cflags from pkg-config to all dependent modules

Closes #18628

This commit splits the arguments obtained from pkg-config into two
groups, cflags and libs, and consistently applies the cflags to each
individual module linking the library while applying the libs only once
for each compilation.

```

## Parents

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

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