-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Support installing zig 'lib' directory to 'share' #6000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
uh, I just realised this is a dupe of #2219 |
How about non standard libraries? Is installing them to and looking up from data dirs (I'm stealing XDG terminology here) be supported by the build system? Currently there's only path for bin, lib and header (include), plus the prefix, so Zig libraries are installed without the interface to call them. |
Is this issue still relevant or can this be closed? |
What is the full path that you are suggesting for it to go into? Related question, what would be the directory that the system would install zig packages to for #14281? When in non-system mode, this looks like
Would that be @daurnimator represents Archlinux; can I get confirmation from a different distro to confirm that these paths are desired? |
@andrewrk I put this question to the #xbps IRC channel (void linux packaging). To summarize:
Personally, I don't see a strong motivation to change Zig's defaults away from As for the path for system-provided zig packages, I'd suggest
|
Thanks void linux folks! This was very helpful.
Alright then let's stick with this standard pattern. |
Zig expects to find the standard library and other architecture independent files by searching for a directory named
lib
. To follow standard convention of unix systems, architecture independent files should be inshare
, notlib
./usr/share
/usr/lib
/usr/lib<qual>
References
FILE-HIERARCHY(7)
The text was updated successfully, but these errors were encountered: