meson: Build pgevent as shared_module rather than shared_library
authorPeter Eisentraut <[email protected]>
Tue, 26 Nov 2024 17:06:08 +0000 (18:06 +0100)
committerPeter Eisentraut <[email protected]>
Tue, 26 Nov 2024 17:09:05 +0000 (18:09 +0100)
This matches the behavior of the makefiles and the old MSVC build
system.  The main effect is that the build result gets installed into
pkglibdir rather than bindir.  The documentation says to locate the
library in pkglibdir, so this makes the code match the documentation
again.

Reviewed-by: Ryohei Takahashi (Fujitsu) <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/TY3PR01MB118912125614599641CA881B782522%40TY3PR01MB11891.jpnprd01.prod.outlook.com

src/bin/pgevent/meson.build

index 5c2d296fef918fca69d5bcfe5b636c52239c535e..f7422438664dc4930867e81d4694829a1ab2e34b 100644 (file)
@@ -21,13 +21,11 @@ if cc.get_id() == 'msvc'
   pgevent_link_args += '/ignore:4104'
 endif
 
-pgevent = shared_library('pgevent',
+pgevent = shared_module('pgevent',
   pgevent_sources,
   dependencies: [frontend_code],
   link_args: pgevent_link_args,
   vs_module_defs: 'pgevent.def',
-  kwargs: default_lib_args + {
-    'name_prefix': '',
-  },
+  kwargs: default_mod_args,
 )
 bin_targets += pgevent