You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a reason why there is no libmruby.so?
Even if mruby is intended as a small implemetation to be statically linked, same goes for example for Lua, which is still usually found as a shared library in Linux distributions.
The text was updated successfully, but these errors were encountered:
Try specifying build_config/host-shared.rb as the build configuration file.
A shared object file should be generated.
% rake -m MRUBY_CONFIG=host-shared clean all
However, as far as I understand, there are several problems.
It does not yet support Microsoft VisualC++.
The build configuration file only supports gcc/clang compatible compilers.
Requires a developer for MSVC.
The executable files built as mrbgems contain the absolute path to libmruby.so in the build directory.
For example, the mruby command built on FreeBSD has the following required libraries.
Replacing it with a relative path requires a change to the mruby build system.
In addition, the proper specification of the LD_LIBRARY_PATH environment variable is required, at least when executing commands done internally.
Otherwise, no test can be performed, and the mrbc command cannot be called before that.
Thank you, I found the MRUBY_CONFIG=host-shared option later. You are right about those issues and there is one more: Linux distributions tend to add special compiler flags such as -Wl,-soname,libmruby.so.3.3 indicating the binary compatibility.
I was able to produce a working result by removing the binaries and recompiling them manually as well as compiling the .so manually using -Wl,--whole-archive lib/libmruby.a.
Is there a reason why there is no
libmruby.so
?Even if mruby is intended as a small implemetation to be statically linked, same goes for example for Lua, which is still usually found as a shared library in Linux distributions.
The text was updated successfully, but these errors were encountered: