# std.zig.system.NativePaths: ignore linkage directives in \`NIX_LDFLAGS\` · gitcafe/zig

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

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

Visibility: public

Requested revision: 6f3ee587ba5ad82178e9fe8a8d788729a3e18d6b

Requested commit: 6f3ee587ba5ad82178e9fe8a8d788729a3e18d6b

Commit: 6f3ee587ba5ad82178e9fe8a8d788729a3e18d6b

Tree: d590cf947467f44072bb90219e77429ae6bf80a2

Author: Winter

Committer: Andrew Kelley

## Message

```
std.zig.system.NativePaths: ignore linkage directives in `NIX_LDFLAGS`

`NIX_LDFLAGS` typically contains just `-rpath` and `-L`, which we already
handle. However, at least one setup hook in Nixpkgs [0] adds a linkage
directive to it. To prevent library paths from being missed (as I've
observed myself with `NIX_LDFLAGS` being `-liconv ...`, making it so that
*all* paths are missed), let's just skip over them.

[0]: https://github.com/NixOS/nixpkgs/blob/08f615eb1b3c5cf7481996f29c6092c7c891b15b/pkgs/development/libraries/libiconv/setup-hook.sh

```

## Parents

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

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