Repository navigation
Conversation
|
Could you remove the else block? Makes it clearer that this is a special case for the openBSD dynamic libs. |
|
Is it more clear like this @Vexu ? or should i move somehting ? Edit : Seems caught an error with src/Compilation.zig at 2062, i'll try to check it out too... |
|
Compiling works well, i forgot to put path in test_path too.. sorry ! |
|
Update Done ! |
andrewrk
left a comment
There was a problem hiding this comment.
Can you please ask an OpenBSD developer to check your work? I don't think they expect compilers to perform this logic inside every lib directory for every dynamic library. Or, provide evidence that it is supposed to work this way in another compiler's codebase, or OpenBSD documentation.
oh my god, they actually patched LLD to do this logic |
…emove return false
|
To make coherent with the patch of LLD, i put |
You're welcome ! i should be the first one which should thank you, for helping us to use Zig on OpenBSD ! 😄 (i forgot to answer you, sorry of the late), i had no problem to help at all, but if you see i'm struggling a lot (as error handling because idk how to manage, or which message i should print) you can help or even commit on my branch ! |
implicit decimal with `{d}` for format rather `{}`
|
@andrewrk does this changes seems good ? |
|
(OpenBSD dev here), from OpenBSD point of vue, it LGTM. |
remove the useless switch(link_mode) put directly target.dynamicLibSuffix()
Thank you for your approval! sorry for the latest commit (i forgot to remove the stupid switch(link_mode) case i putted here) |
|
This will have to be rebased and resubmitted on Codeberg. |
See ziglang#18475 for a prior attempt at implementing this
See ziglang#18475 for a prior attempt at implementing this
See ziglang/zig#18475 for a prior attempt at implementing this
Hi zig developers, as i mention yesterday, Zig can't be able to fetch as well shared library on OpenBSD, because no symlink are available.
I made up a little patch for OpenBSD making Zig compilator link shared versioned library as well.
#18465
Sorry for disturbing you again, i'm just a novice on Zig who want to help/contribute, not to harass you what openbsd or by our idiomatic.