openwrt-packages/lang/ruby
Luiz Angelo Daros de Luca 39c14b859a ruby: statically link extensions into host ruby
Ruby uses extensions (.so files) that might also depend on other
libraries. When the linker builds an executable, it will refer to the
path it found the library, including those in the stagging dir. However,
when it links a shared library (like ruby exts), it will let that
dependency to be resolved at runtime.

During host and target build, ruby build script runs ruby scripts. When
it loads a ext that depends on another library, it will, by default,
look for the system libraries to satisfy that, breaking the build when
it fails. Setting LD_LIBRARY_PATH to the stagging lib dir is a valid
workaround.

Ruby can also be built statically linking all exts into ruby executable.
That will make the linker point to the stagging library path, fixing the
issue. It was used in the past but, at some point, ruby broke it. Now it
is working as expected.

Closes #20839

While at it, clean up excluded extensions not used by host ruby.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2023-04-25 14:48:17 -03:00
..
files ruby: wrap script to disable gems if not installed 2014-10-07 14:14:52 -03:00
Makefile ruby: statically link extensions into host ruby 2023-04-25 14:48:17 -03:00
ruby_find_pkgsdeps ruby: update to 3.2.1 2023-04-11 16:48:16 -03:00
ruby_missingfiles ruby: update to 3.1.2 2022-04-25 12:13:08 -07:00