make compilation work on cygwin

This commit is contained in:
Ailin Nemui 2025-07-25 16:15:05 +01:00
commit df8aa42778
18 changed files with 40 additions and 26 deletions

View file

@ -13,10 +13,15 @@ rootinc = include_directories('.')
dep = []
textui_dep = []
need_dl_cross_link = false
need_dl_cross_link_main = false
dl_cross_irssi_main = []
# The Android environment requires that all modules are linked to each other.
# See https://github.com/android/ndk/issues/201
if host_machine.system() == 'android'
need_dl_cross_link = true
elif host_machine.system() == 'cygwin'
need_dl_cross_link = true
need_dl_cross_link_main = true
endif
includedir = get_option('includedir')