Skip to content

Commit

Permalink
Add -Wl,-z,lazy to RbConfig::CONFIG['dldflags']
Browse files Browse the repository at this point in the history
* This is necessary on Gentoo which defaults to non-lazy symbol bindings, see
  https://wiki.gentoo.org/wiki/Hardened/Toolchain#Binding_policy_NOW_(BIND_NOW)
  • Loading branch information
eregon committed Nov 6, 2024
1 parent 3cfc5c9 commit 0dd17e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/cext/include/truffleruby/truffleruby-abi-version.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
// $RUBY_VERSION must be the same as TruffleRuby.LANGUAGE_VERSION.
// $ABI_NUMBER starts at 1 and is incremented for every ABI-incompatible change.

#define TRUFFLERUBY_ABI_VERSION "3.2.4.4"
#define TRUFFLERUBY_ABI_VERSION "3.2.4.5"

#endif
2 changes: 1 addition & 1 deletion lib/truffle/rbconfig.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ module RbConfig
defs = ''
cppflags = ''
ldflags = ''
dldflags = Truffle::Platform.darwin? ? '-Wl,-undefined,dynamic_lookup' : ''
dldflags = Truffle::Platform.darwin? ? '-Wl,-undefined,dynamic_lookup' : '-Wl,-z,lazy'

cext_dir = "#{prefix}/lib/cext"
soext = Truffle::Platform::SOEXT
Expand Down

0 comments on commit 0dd17e4

Please sign in to comment.