mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builder: use .dylib for -shared builds in macOS
This commit is contained in:
@@ -147,7 +147,11 @@ fn (mut v Builder) cc() {
|
||||
if v.pref.is_shared {
|
||||
linker_flags << '-shared'
|
||||
a << '-fPIC' // -Wl,-z,defs'
|
||||
v.pref.out_name += '.so'
|
||||
$if macos {
|
||||
v.pref.out_name += '.dylib'
|
||||
} $else {
|
||||
v.pref.out_name += '.so'
|
||||
}
|
||||
}
|
||||
if v.pref.is_bare {
|
||||
a << '-fno-stack-protector'
|
||||
|
||||
Reference in New Issue
Block a user