summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Le Page <llepage@fluendo.com>2022-01-13 18:46:10 +0100
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2022-01-22 13:32:54 +0530
commitc03e1a74b17fa7ec467e110130775409e4828a4c (patch)
treec7bef6eabb760c9c8b436d797885f980b75cc874
parent8fc18b35ee38a57a3124c1956d7b7158f7fbeb4c (diff)
downloadproxy-libintl-master.tar.gz
proxy-libintl-master.zip
Fix Windows static buildHEADlocal/proxy-libintl0.4master
On Windows, static compilation needs G_INTL_STATIC_COMPILATION to be also defined during compilation. Else functions are exported with __declspec(dllexport) which causes issues when importing symbols during linkage with the static library.
-rw-r--r--meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index e72b498..957bf18 100644
--- a/meson.build
+++ b/meson.build
@@ -5,6 +5,10 @@ project('proxy-libintl', 'c',
'c_std=gnu99',
'buildtype=debugoptimized' ])
+if get_option('default_library') == 'static'
+ add_project_arguments('-DG_INTL_STATIC_COMPILATION', language : 'c')
+endif
+
install_headers('libintl.h')
intl_lib = library('intl',