1
+ [target .'cfg(target_env = "gnu")' ]
2
+ rustflags = [" -C" , " link-args=-Wl,-z,nodelete" ]
3
+
1
4
[target .x86_64-unknown-linux-gnu ]
2
5
# This turns the presence of undefined symbols in the output binary into a
3
6
# warning instead of an error when linking.
15
18
# unit-testing, however if this crate depends on a crate B that also defines
16
19
# `napi` bindings, the linker will fail because B will have been compiled
17
20
# without the testing mode noop removal.
18
- rustflags = [" -C" , " link-args=-Wl,--warn-unresolved-symbols" ]
21
+ rustflags = [" -C" , " link-args=-Wl,-z,nodelete,- -warn-unresolved-symbols" ]
19
22
20
23
[target .x86_64-apple-darwin ]
21
24
rustflags = [" -C" , " link-args=-Wl,-undefined,dynamic_lookup" ]
@@ -25,12 +28,15 @@ rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup"]
25
28
26
29
[target .arm-unknown-linux-gnueabihf ]
27
30
linker = " arm-linux-gnueabihf-gcc"
31
+ rustflags = [" -C" , " link-args=-Wl,-z,nodelete" ]
28
32
29
33
[target .armv7-unknown-linux-gnueabihf ]
30
34
linker = " arm-linux-gnueabihf-gcc"
35
+ rustflags = [" -C" , " link-args=-Wl,-z,nodelete" ]
31
36
32
37
[target .aarch64-unknown-linux-gnu ]
33
38
linker = " aarch64-linux-gnu-gcc"
39
+ rustflags = [" -C" , " link-args=-Wl,-z,nodelete" ]
34
40
35
41
[target .aarch64-unknown-linux-musl ]
36
42
linker = " aarch64-linux-musl-gcc"
0 commit comments