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.
1 parent b9cf541 commit 7bde2ecCopy full SHA for 7bde2ec
src/librustc_codegen_ssa/back/linker.rs
@@ -361,6 +361,9 @@ impl<'a> Linker for GccLinker<'a> {
361
self.cmd.arg("-dynamiclib");
362
self.linker_arg("-dylib");
363
364
+ // some symbols may be defined in the program loading the library
365
+ self.linker_arg("-undefined,dynamic_lookup");
366
+
367
// Note that the `osx_rpath_install_name` option here is a hack
368
// purely to support rustbuild right now, we should get a more
369
// principled solution at some point to force the compiler to pass
0 commit comments