fix: do not use -fPIC on Windows

This commit is contained in:
Amin Yahyaabadi 2022-08-06 13:47:18 -07:00
parent 76c5773d7c
commit 5d83c8f3b8

View file

@ -395,7 +395,6 @@ impl Loader {
} else {
command
.arg("-shared")
.arg("-fPIC")
.arg("-fno-exceptions")
.arg("-g")
.arg("-I")
@ -403,6 +402,10 @@ impl Loader {
.arg("-o")
.arg(&library_path);
if !cfg!(windows) {
command.arg("-fPIC");
}
if self.debug_build {
command.arg("-O0");
} else {