We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9ed6c33 + cfd2a5c commit 39c0aa3Copy full SHA for 39c0aa3
src/librustc_back/target/openbsd_base.rs
@@ -20,6 +20,11 @@ pub fn opts() -> TargetOptions {
20
linker_is_gnu: true,
21
has_rpath: true,
22
pre_link_args: vec!(
23
+ // GNU-style linkers will use this to omit linking to libraries
24
+ // which don't actually fulfill any relocations, but only for
25
+ // libraries which follow this flag. Thus, use it before
26
+ // specifying libraries to link to.
27
+ "-Wl,--as-needed".to_string(),
28
),
29
position_independent_executables: true,
30
.. Default::default()
0 commit comments