rb_sys 0.9.102 → 0.9.103

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b59c3e5bcbbef93741676fe56d8a3300bf9a121b6164a5536b8c44a48f2b9520
4
- data.tar.gz: 9ba4ad41b38e8ecc42ca4875b475bd3ae0f2dd9409e87d24a8e61d104419733b
3
+ metadata.gz: 1cc1c79fc1d7d8cd6eccd02f21f2edc9e24642e5c98232e2d76b6b9d86e0a1b2
4
+ data.tar.gz: b8816aa7c2dd0c66e9dcccd4e2e26fdb73968a39382639735b1752723d460267
5
5
  SHA512:
6
- metadata.gz: 66c7b0e503b2d1da70c204eea74b4678298f1aa5614137fe85d60e9458465a75840f5509c9ab5d9fd58dd3193ac609c026e667da230ee7bee59dbe6a85561194
7
- data.tar.gz: 3f986a260cb6ad5aa8c708218ae9e5b8556ac8c709786773a4e63cff7c0150cd4acd63bbd5bba37b7b916e9d042672a7c90978375c96cd03a4563ab96e0111f0
6
+ metadata.gz: 6886911f933b14099952de5eab3e2b8a1c952a6a12041d7e843bdccfc48e5e6f28c7263fdc27091b0a2e5f8521cf3e623632052f57b7e29970af0b1123dda9f1
7
+ data.tar.gz: 8f5a626a488b17c04e4dab41330b01ebf9347e1d8d473af2c896b2ec236084a48e5178a9f4b1e0fc974ad5135754588b1dbdd4e520ef0902a03fd9ee816d9944
checksums.yaml.gz.sig CHANGED
Binary file
@@ -146,6 +146,11 @@ module RbSys
146
146
  # See https://github.com/oxidize-rb/rb-sys/issues/88
147
147
  dl_flag = "-Wl,-undefined,dynamic_lookup"
148
148
  flags += ["-C", "link-arg=#{dl_flag}"] unless makefile_config("DLDFLAGS")&.include?(dl_flag)
149
+ elsif RUBY_ENGINE == "truffleruby"
150
+ dl_flag = "-Wl,-z,lazy"
151
+ flags += ["-C", "link-arg=#{dl_flag}"] unless makefile_config("DLDFLAGS")&.include?(dl_flag)
152
+ # lazy binding requires RELRO to be off, see https://users.rust-lang.org/t/linux-executable-lazy-loading/65621/2
153
+ flags += ["-C", "relro-level=off"]
149
154
  end
150
155
 
151
156
  if musl?
data/lib/rb_sys/mkmf.rb CHANGED
@@ -102,6 +102,7 @@ module RbSys
102
102
  RUSTLIBDIR = $(RB_SYS_FULL_TARGET_DIR)/$(RB_SYS_CARGO_PROFILE_DIR)
103
103
  RUSTLIB = $(RUSTLIBDIR)/$(SOEXT_PREFIX)$(TARGET_NAME).$(SOEXT)
104
104
  TIMESTAMP_DIR = .
105
+ POSTLINK = #{RbConfig::CONFIG["POSTLINK"] || "$(ECHO) skipping postlink"}
105
106
 
106
107
  CLEANOBJS = $(RUSTLIBDIR) $(RB_SYS_BUILD_DIR)
107
108
  CLEANLIBS = $(DLLIB) $(RUSTLIB)
@@ -132,6 +133,7 @@ module RbSys
132
133
 
133
134
  $(DLLIB): $(RUSTLIB)
134
135
  \t$(Q) $(COPY) "$(RUSTLIB)" $@
136
+ \t$(Q) $(POSTLINK)
135
137
 
136
138
  install-so: $(DLLIB) #{timestamp_file("sitearchdir")}
137
139
  \t$(ECHO) installing $(DLLIB) to $(RUBYARCHDIR)
@@ -165,8 +167,8 @@ module RbSys
165
167
  def cargo_command(cargo_dir, builder)
166
168
  builder.ext_dir = cargo_dir
167
169
  dest_path = builder.target_dir || File.join(Dir.pwd, "target")
168
- args = ARGV.dup
169
- args.shift if args.first == "--"
170
+ args = []
171
+ args = ARGV.dup.shift if args.first == "--"
170
172
  cargo_cmd = builder.cargo_command(dest_path, args)
171
173
  cmd = Shellwords.join(cargo_cmd)
172
174
  cmd.gsub!("\\=", "=")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RbSys
4
- VERSION = "0.9.102"
4
+ VERSION = "0.9.103"
5
5
  end
data.tar.gz.sig CHANGED
@@ -1,3 +1,3 @@
1
- �ԅŠZ���.̧��r�s"`��X��]����V?ދ��RC�J`&}q=66rz)�%�
2
- LlRA�< ��C�1��̫��u�W0�m�2j˻�UQ�����,�u���Ol-�ro��Ŋ�)r^��ϋC��U�j��_�^ 縴�jk��
3
- �����I�ߓ0�{HSb�kT&+����)��@�Zk2��Pn��HaD3i#塳Xt��oe�9��M2�;�&�)
1
+ ��yؓмOK%�����?���PԀ�[�sڱ�Eӿ�ٲ�m��Q���w�<�gTC�iҴ��ё�H�,6�v���O��B<��@6��*��{���
2
+ F�U�>�{O�����������6�CW�����^ZZm7Q���FŦ�����4Q-_sf���UcW����T@<�8�m8ҽ@�k�Sְn /=*�
3
+ :!����
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rb_sys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.102
4
+ version: 0.9.103
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Ker-Seymer
@@ -29,7 +29,7 @@ cert_chain:
29
29
  Lvd35BNvZkhFzs9xfykhurpkT2TiP2F3ZFn9dwLXMFe41pwrtEYLIWhYi8mUG4Ek
30
30
  6aR8M/tqIpChVV39
31
31
  -----END CERTIFICATE-----
32
- date: 2024-08-20 00:00:00.000000000 Z
32
+ date: 2024-11-19 00:00:00.000000000 Z
33
33
  dependencies: []
34
34
  description:
35
35
  email:
metadata.gz.sig CHANGED
Binary file