File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ cargo:rustc-link-lib=static=foo
62
62
cargo:rustc-link-search=native=/path/to/foo
63
63
cargo:rustc-cfg=foo
64
64
cargo:rustc-env=FOO=bar
65
+ cargo:rustc-cdylib-link-arg=-Wl,-soname,libfoo.so.1.2.3
65
66
# arbitrary user-defined metadata
66
67
cargo:root=/path/to/foo
67
68
cargo:libdir=/path/to/foo/lib
@@ -93,6 +94,9 @@ crate is built:
93
94
This is useful for embedding additional metadata in crate's code,
94
95
such as the hash of Git HEAD or the unique identifier of a continuous
95
96
integration server.
97
+ * ` rustc-cdylib-link-arg=FLAG ` is a flag passed to the compiler as
98
+ ` -C link-arg=FLAG ` when building a ` cdylib ` . Its usage is highly platform
99
+ specific. It is useful to set the shared library version or the runtime-path.
96
100
* ` rerun-if-changed=PATH ` is a path to a file or directory which indicates that
97
101
the build script should be re-run if it changes (detected by a more-recent
98
102
last-modified timestamp on the file). Normally build scripts are re-run if
You can’t perform that action at this time.
0 commit comments