-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
add OpenBSD libc as a cross compilation target #2878
Comments
@andrewrk is that link broken? It leads to a "create new page" for me. |
Is this the right wiki page? |
This comment has been minimized.
This comment has been minimized.
What should I do to add OpenBSD libc? |
@locriacyber, openbsd-ziglibc is getting real libc and headers files. I think what is expected here is to get only functions stubs. |
not header files? openbsd use clang as the compiler and I think it has its own libc headers. Given how OpenBSD has no ABI guarantee, every version of OpenBSD has its own |
to build C program (using zig compiler), you need both (libc stubs and header files). to build ZIG program (using zig compiler), you need only libc stubs (assuming no C dependency). openbsd-ziglibc extracts the whole sets of C headers which are normally installed (~50 Mo for only one OS version and only one architecture). (and not all architectures are using clang as compiler, but it is another discussion) |
What do you mean by "libc stubs" in case of OpenBSD? The symbol table of libc? |
Extracted from #514.
This is needed for OpenBSD to become a tier 1 target.
The example set by glibc can be followed.
See also this wiki page: https://github.com/ziglang/zig/wiki/Updating-libc
The text was updated successfully, but these errors were encountered: