Using a shared library generated by PackageCompiler in a multi-threaded program

PackageCompiler.jl in julia 1.11 has that limitation, while JuliaC.jl in julia 1.12 does not. Not sure about PackageCompiler.jl in julia 1.12.

Yes, it’s not well documented. Probably because JuliaC.jl is so new.