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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/rb_sys/cargo_builder.rb +5 -0
- data/lib/rb_sys/mkmf.rb +4 -2
- data/lib/rb_sys/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +1 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6244f20772d9b2cf030d9a2e21a1c7192690db65365b95bd130251fd281d732d
|
4
|
+
data.tar.gz: 8e0c2d543fb03954dea00c5599c64786e0dd250f610d9b5785a755f1c77b1374
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f856d1674634eaec2dadcee6c8ab89f110ca69c683f555216304252fbcba7ae780bdc575b35026f31bac60da97bb461480e24dbd32b6937faf677a69985b06c5
|
7
|
+
data.tar.gz: af0cd80e4ebbf5185e38a2b2d74498452f6642017c6aaeef7b3c7e54d6fd1320b7dc1e3d94348b0d921860bca7011a99de95cd9555f14ac5908015f77decdfa8
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/rb_sys/cargo_builder.rb
CHANGED
@@ -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 =
|
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!("\\=", "=")
|
data/lib/rb_sys/version.rb
CHANGED
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.
|
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-
|
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
|
-
|
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ٗ���zp�j�$',�ƽ_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��
|