[luajit] lj_prng.c patch for FreeBSD - #226
Conversation
d580b4e to
1d4f8df
Compare
Compile failure in aro, so I wonder if this means translate-c needs an update? |
It does: https://codeberg.org/ziglang/translate-c/commit/32dde9bff199152a6cc4ddc77e0e79cc9a3e57fc |
|
Ah, I don't get any errors when building with 0.17.0-dev.1857+3c46da14d so didn't catch this, not sure why that is |
Well it's only the tests that fail, so you may have not caught that. Although, Zig did just reimplement those removed deprecated functions, for some reason: https://codeberg.org/ziglang/zig/commit/18e38104ce60a02f27b565097cff66c3429aa8d4 |
|
@natecraddock updated to latest translate-c and tests are running locally now |
👋 hi;;;
While working on contributions to ly, which depends on this project, switching to FreeBSD meant that I could no longer build the project on ReleaseSafe.
The following error is received:
This is because of SSP being enabled by ReleaseSafe, overwriting the getentropy function with a a static declaration in FreeBSD libc, and since Luajit imports the header after defining it as extern, the compiler isn't happy.
This patch moves the import above the extern declaration on FreeBSD to prevent this.
Included is also a fix to have it compile on the latest zig-17dev (linking_lib_c).