Skip to content

Commit

Permalink
try fix link issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Chronostasys committed Aug 28, 2024
1 parent dec2a67 commit 8c2588f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pl_linker/src/linker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ impl Linker for LdLinker {
"-lunwind",
"--no-as-needed",
"-ldl",
"-lgcc",
// "/usr/lib/gcc/x86_64-linux-gnu/<version>/crtendS.o",
"/lib/x86_64-linux-gnu/crtn.o",
]
Expand Down Expand Up @@ -318,6 +319,11 @@ impl Linker for MsvcLinker {
self.push_args("ntdll.lib");
self.push_args("psapi.lib");
self.push_args("PowrProf.lib");
self.push_args("user32.lib"); // Add user32.lib
self.push_args("dbghelp.lib"); // Add dbghelp.lib
self.push_args("ole32.lib"); // Add ole32.lib
self.push_args("shell32.lib"); // Add shell32.lib
self.push_args("iphlpapi.lib");// Add iphlpapi.lib

self.args.insert(0, "lld-link".to_owned());
lld_rs::link(lld_rs::LldFlavor::Coff, &self.args)
Expand Down

0 comments on commit 8c2588f

Please sign in to comment.