diff options
| author | Loic Le Page <llepage@fluendo.com> | 2022-01-13 18:46:10 +0100 |
|---|---|---|
| committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2022-01-22 13:32:54 +0530 |
| commit | c03e1a74b17fa7ec467e110130775409e4828a4c (patch) | |
| tree | c7bef6eabb760c9c8b436d797885f980b75cc874 /meson.build | |
| parent | 8fc18b35ee38a57a3124c1956d7b7158f7fbeb4c (diff) | |
| download | proxy-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.
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 4 |
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', |
