-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.libcIssues related to libzigc and Zig's vendored libc code.Issues related to libzigc and Zig's vendored libc code.os-linuxLinuxLinux
Milestone
Description
This is an extension of #2879.
It's unlikely that we'd ever ship the full glibc code for static linking, partially because of license concerns, partially because some glibc subsystems call dlopen internally, and partially because the glibc source tree is frankly very bloated.
What we can do, though, is implement the glibc API surface in Zig as part of the #2879 effort. By doing so, users would be able to zig build-exe -static -lc -target ...-gnu, but without the license issues and without the caveats that usually apply when linking glibc statically, such as the internal use of dlopen.
Prior art: https://github.com/sunfishcode/mustang
maxmilton and reneleonhardt
Metadata
Metadata
Assignees
Labels
enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.libcIssues related to libzigc and Zig's vendored libc code.Issues related to libzigc and Zig's vendored libc code.os-linuxLinuxLinux