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:
@ -307,8 +307,10 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) {
|
|||||||
}
|
}
|
||||||
if v.pref.is_shared {
|
if v.pref.is_shared {
|
||||||
ccoptions.linker_flags << '-shared'
|
ccoptions.linker_flags << '-shared'
|
||||||
|
$if !windows {
|
||||||
ccoptions.args << '-fPIC' // -Wl,-z,defs'
|
ccoptions.args << '-fPIC' // -Wl,-z,defs'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if v.pref.is_bare {
|
if v.pref.is_bare {
|
||||||
ccoptions.args << '-fno-stack-protector'
|
ccoptions.args << '-fno-stack-protector'
|
||||||
ccoptions.args << '-ffreestanding'
|
ccoptions.args << '-ffreestanding'
|
||||||
|
Reference in New Issue
Block a user