rb_sys 0.9.102 → 0.9.104

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: 6244f20772d9b2cf030d9a2e21a1c7192690db65365b95bd130251fd281d732d
4
+ data.tar.gz: 8e0c2d543fb03954dea00c5599c64786e0dd250f610d9b5785a755f1c77b1374
5
5
  SHA512:
6
- metadata.gz: 66c7b0e503b2d1da70c204eea74b4678298f1aa5614137fe85d60e9458465a75840f5509c9ab5d9fd58dd3193ac609c026e667da230ee7bee59dbe6a85561194
7
- data.tar.gz: 3f986a260cb6ad5aa8c708218ae9e5b8556ac8c709786773a4e63cff7c0150cd4acd63bbd5bba37b7b916e9d042672a7c90978375c96cd03a4563ab96e0111f0
6
+ metadata.gz: f856d1674634eaec2dadcee6c8ab89f110ca69c683f555216304252fbcba7ae780bdc575b35026f31bac60da97bb461480e24dbd32b6937faf677a69985b06c5
7
+ data.tar.gz: af0cd80e4ebbf5185e38a2b2d74498452f6642017c6aaeef7b3c7e54d6fd1320b7dc1e3d94348b0d921860bca7011a99de95cd9555f14ac5908015f77decdfa8
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.104"
5
5
  end
data.tar.gz.sig CHANGED
Binary file
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.104
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-12-22 00:00:00.000000000 Z
33
33
  dependencies: []
34
34
  description:
35
35
  email:
metadata.gz.sig CHANGED
@@ -1,3 +1 @@
1
- �o-�(�p�K��
2
- �5vK-f/��k���Ph��;�����R����`9e5K�@x��gF���*ё���@�S��q;��!C`x��=�t�g�&~&@�!��Z�,~�fPu��c@�r���L�wr��>ވP����X�o���*@W[��P����(�B�9AgomȮq�P��O�
3
- �K@jn8�W�Đ0@�E�� 8'��c�!*z�ӕ�����Hh�"�y�����b�n���a�,�����g��f��T�o��?`
1
+ ?;�'�a��Tbj��B+ ����M��n)i�v�(/ ?��C�\���!����������(z�|/���ƒk&NX_�^��To�-DQ�^ݎQ8���H]��S4ٗ���zpj�$',�ƽ_Q��<A�ة�<�G�0t��# x�n��2.X�Z���E�2O<R��F�ad*+�I�����������[w,��B���+j�G|�~w�� �H�ߋ�aʄ��{�XU]O�M1 k给R��