diff options
author | Benjamin Gilbert <bgilbert@backtick.net> | 2023-01-05 20:29:00 -0500 |
---|---|---|
committer | Benjamin Gilbert <bgilbert@backtick.net> | 2023-07-08 17:36:00 -0400 |
commit | 48d5df1f3772a08a929dcb3b2fe4d7b1853223c9 (patch) | |
tree | 57bfcda87945285605d6d8e80fff049bcbe6b9e4 | |
parent | e4c878d17942346dce5f54b25d7624440ef47de6 (diff) |
meson: don't dllexport when built as static library
If a static Pixman is linked with a dynamic library, Pixman shouldn't
export its own symbols into the latter's ABI.
-rw-r--r-- | pixman/meson.build | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pixman/meson.build b/pixman/meson.build index 5dce870..62ec66b 100644 --- a/pixman/meson.build +++ b/pixman/meson.build @@ -31,7 +31,8 @@ version_h = configure_file( ) libpixman_extra_cargs = [] -if cc.has_function_attribute('dllexport') +default_library = get_option('default_library') +if default_library != 'static' and cc.has_function_attribute('dllexport') libpixman_extra_cargs = ['-DPIXMAN_API=__declspec(dllexport)'] endif |