Skip to content

Commit e00c1e2

Browse files
committed
meson: Build pgevent as shared_module rather than shared_library
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) <r.takahashi_2@fujitsu.com> Discussion: https://www.postgresql.org/message-id/flat/TY3PR01MB118912125614599641CA881B782522%40TY3PR01MB11891.jpnprd01.prod.outlook.com
1 parent b0e5728 commit e00c1e2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/bin/pgevent/meson.build

+2-4
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@ if cc.get_id() == 'msvc'
2121
pgevent_link_args += '/ignore:4104'
2222
endif
2323

24-
pgevent = shared_library('pgevent',
24+
pgevent = shared_module('pgevent',
2525
pgevent_sources,
2626
dependencies: [frontend_code],
2727
link_args: pgevent_link_args,
2828
vs_module_defs: 'pgevent.def',
29-
kwargs: default_lib_args + {
30-
'name_prefix': '',
31-
},
29+
kwargs: default_mod_args,
3230
)
3331
bin_targets += pgevent

0 commit comments

Comments
 (0)