Merge pull request #1578 from ailin-nemui/cygwin

make compilation work on cygwin
This commit is contained in:
ailin-nemui 2026-01-23 20:20:43 +00:00 committed by GitHub
commit d5be7d7756
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 76 additions and 48 deletions

View file

@ -1,5 +1,5 @@
shared_module('Irssi',
shared_library('Irssi',
[ xsubpp.process(
files(
'Channel.xs',
@ -26,7 +26,8 @@ shared_module('Irssi',
include_directories : rootinc,
implicit_include_directories : true,
dependencies : dep + [ perl_dep ],
link_with : dl_cross_perl_core,
link_with : dl_cross_perl_core + dl_cross_irssi_main,
override_options : ['b_lundef=false'],
)
install_headers(

View file

@ -1,4 +1,4 @@
shared_module('Irc',
shared_library('Irc',
[ xsubpp.process(
files(
'Channel.xs',
@ -27,7 +27,8 @@ shared_module('Irc',
include_directories : rootinc,
implicit_include_directories : true,
dependencies : dep + [ perl_dep ],
link_with : dl_cross_perl_core + dl_cross_irc_dcc + dl_cross_irc_notifylist,
link_with : dl_cross_perl_core + dl_cross_irc_dcc + dl_cross_irc_notifylist + dl_cross_irc_core + dl_cross_irssi_main,
override_options : ['b_lundef=false'],
)
install_headers(

View file

@ -17,7 +17,7 @@ irssi_core_pl_h = custom_target('irssi-core.pl.h',
# required as of Meson 0.58.0
generated_files_inc = include_directories('.')
libperl_core_sm = shared_module('perl_core',
libperl_core_sm = shared_library('perl_core',
files(
'perl-common.c',
'perl-core.c',
@ -39,7 +39,8 @@ libperl_core_sm = shared_module('perl_core',
install_rpath : perl_rpath,
build_rpath : perl_rpath,
dependencies : dep_cflagsonly + [ perl_dep ] + dl_cross_dep,
override_options : ['b_asneeded=false'],
override_options : ['b_asneeded=false', 'b_lundef=false'],
link_with : dl_cross_irssi_main,
)
dl_cross_perl_core = []
@ -47,7 +48,7 @@ if need_dl_cross_link
dl_cross_perl_core += libperl_core_sm
endif
shared_module('fe_perl',
shared_library('fe_perl',
files(
'module-formats.c',
'perl-fe.c',
@ -61,7 +62,8 @@ shared_module('fe_perl',
install : true,
install_dir : moduledir,
dependencies : dep,
link_with : dl_cross_perl_core,
link_with : dl_cross_perl_core + dl_cross_irssi_main,
override_options : ['b_lundef=false'],
)
subdir('common')

View file

@ -1,4 +1,4 @@
shared_module('TextUI',
shared_library('TextUI',
[ xsubpp.process(
files(
'Statusbar.xs',
@ -23,7 +23,8 @@ shared_module('TextUI',
include_directories : rootinc,
implicit_include_directories : true,
dependencies : dep + [ perl_dep ],
link_with : dl_cross_perl_core,
link_with : dl_cross_perl_core + dl_cross_irssi_main,
override_options : ['b_lundef=false'],
)
install_headers(

View file

@ -1,4 +1,4 @@
shared_module('UI',
shared_library('UI',
[ xsubpp.process(
files(
'Formats.xs',
@ -21,7 +21,8 @@ shared_module('UI',
include_directories : rootinc,
implicit_include_directories : true,
dependencies : dep + [ perl_dep ],
link_with : dl_cross_perl_core,
link_with : dl_cross_perl_core + dl_cross_irssi_main,
override_options : ['b_lundef=false'],
)
install_headers(