Skip to content

zig native paths should include /usr/lib/{linux triple} by default on Linux #16733

@mitchellh

Description

@mitchellh

Zig Version

0.11.0

Steps to Reproduce and Observed Behavior

Depend on something like GTK: step.linkSystemLibrary("gtk4"). On Xubuntu, gtk4 from apt is installed in /usr/lib/aarch64-linux-gnu. I've noticed this on other distros as well such as the flatpak build environment.

Expected Behavior

Given this is a common path for default packages across distros, I think NativePaths should add it here:

try self.addLibDirFmt("/lib/{s}", .{triple});

We already add /lib/{linux triple}.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorcontributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.os-linuxLinux

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions