--subsystem needs -Wl when using non-ld linkers

This commit is contained in:
Jorge Aparicio 2017-04-10 09:53:24 -05:00
parent 2fed2a2395
commit 251d9be429

View File

@ -363,7 +363,7 @@ impl<'a> Linker for GccLinker<'a> {
}
fn subsystem(&mut self, subsystem: &str) {
self.cmd.arg(&format!("--subsystem,{}", subsystem));
self.linker_arg(&format!("--subsystem,{}", subsystem));
}
fn finalize(&mut self) -> Command {