builder: remove fPic argument from windows builds (#11467)

pull/11471/head
Ekopalypse 2021-09-11 03:48:02 +02:00 committed by GitHub
parent fb20a92b1e
commit f9eb14d914
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -307,7 +307,9 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) {
}
if v.pref.is_shared {
ccoptions.linker_flags << '-shared'
ccoptions.args << '-fPIC' // -Wl,-z,defs'
$if !windows {
ccoptions.args << '-fPIC' // -Wl,-z,defs'
}
}
if v.pref.is_bare {
ccoptions.args << '-fno-stack-protector'