mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builder: remove fPic argument from windows builds (#11467)
This commit is contained in:
parent
fb20a92b1e
commit
f9eb14d914
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user