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 <[email protected]>
cppflags += '-D_GNU_SOURCE'
dlsuffix = '.dll'
mod_link_args_fmt = ['@0@']
- mod_link_with_name = 'lib@0@.exe.a'
mod_link_with_dir = 'libdir'
elif host_system == 'darwin'
export_file_suffix = 'def'
if cc.get_id() == 'msvc'
export_fmt = '/DEF:@0@'
- mod_link_with_name = '@0@.exe.lib'
else
export_fmt = '@0@'
- mod_link_with_name = 'lib@0@.exe.a'
endif
mod_link_args_fmt = ['@0@']
mod_link_with_dir = 'libdir'
link_with: backend_link_with,
link_depends: backend_link_depends,
export_dynamic: true,
- implib: true,
+ implib: 'postgres',
dependencies: backend_build_deps,
kwargs: default_bin_args,
)