meson: Fix import library name in Windows
This changes the import library name from 'postgres.exe.lib' to 'postgres.lib', which is what it was with the old MSVC build system. Extension builds use that name. Bug: #18513 Reported-by: Muralikrishna Bandaru <muralikrishna.bandaru@enterprisedb.com>
This commit is contained in:
parent
832dc19ea6
commit
c61c0cb3a9
@ -201,7 +201,7 @@ if host_system == 'cygwin'
|
|||||||
cppflags += '-D_GNU_SOURCE'
|
cppflags += '-D_GNU_SOURCE'
|
||||||
dlsuffix = '.dll'
|
dlsuffix = '.dll'
|
||||||
mod_link_args_fmt = ['@0@']
|
mod_link_args_fmt = ['@0@']
|
||||||
mod_link_with_name = 'lib@0@.exe.a'
|
mod_link_with_name = 'lib@0@.a'
|
||||||
mod_link_with_dir = 'libdir'
|
mod_link_with_dir = 'libdir'
|
||||||
|
|
||||||
elif host_system == 'darwin'
|
elif host_system == 'darwin'
|
||||||
@ -273,10 +273,10 @@ elif host_system == 'windows'
|
|||||||
export_file_suffix = 'def'
|
export_file_suffix = 'def'
|
||||||
if cc.get_id() == 'msvc'
|
if cc.get_id() == 'msvc'
|
||||||
export_fmt = '/DEF:@0@'
|
export_fmt = '/DEF:@0@'
|
||||||
mod_link_with_name = '@0@.exe.lib'
|
mod_link_with_name = '@0@.lib'
|
||||||
else
|
else
|
||||||
export_fmt = '@0@'
|
export_fmt = '@0@'
|
||||||
mod_link_with_name = 'lib@0@.exe.a'
|
mod_link_with_name = 'lib@0@.a'
|
||||||
endif
|
endif
|
||||||
mod_link_args_fmt = ['@0@']
|
mod_link_args_fmt = ['@0@']
|
||||||
mod_link_with_dir = 'libdir'
|
mod_link_with_dir = 'libdir'
|
||||||
|
@ -133,7 +133,7 @@ postgres = executable('postgres',
|
|||||||
link_with: backend_link_with,
|
link_with: backend_link_with,
|
||||||
link_depends: backend_link_depends,
|
link_depends: backend_link_depends,
|
||||||
export_dynamic: true,
|
export_dynamic: true,
|
||||||
implib: true,
|
implib: 'postgres',
|
||||||
dependencies: backend_build_deps,
|
dependencies: backend_build_deps,
|
||||||
kwargs: default_bin_args,
|
kwargs: default_bin_args,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user