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 +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 +3 -3
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cc1c79fc1d7d8cd6eccd02f21f2edc9e24642e5c98232e2d76b6b9d86e0a1b2
|
4
|
+
data.tar.gz: b8816aa7c2dd0c66e9dcccd4e2e26fdb73968a39382639735b1752723d460267
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6886911f933b14099952de5eab3e2b8a1c952a6a12041d7e843bdccfc48e5e6f28c7263fdc27091b0a2e5f8521cf3e623632052f57b7e29970af0b1123dda9f1
|
7
|
+
data.tar.gz: 8f5a626a488b17c04e4dab41330b01ebf9347e1d8d473af2c896b2ec236084a48e5178a9f4b1e0fc974ad5135754588b1dbdd4e520ef0902a03fd9ee816d9944
|
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
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
��yؓмOK%�����?���PԀ�[�sڱ�Eӿ�ٲ�m��Q���w�<�gTC�iҴ��ё�H�,6�v���O��B<��@6��*��{���
|
2
|
+
�F�U�>�{ �O�����������6�CW�����^Z�Zm7Q���FŦ�����4Q-_s�f���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.
|
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-
|
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
|