From b4ca23bed171ec8ed19b0e1b8d139ef617147729 Mon Sep 17 00:00:00 2001 From: Marian Klymov Date: Sat, 12 Oct 2024 10:57:59 +0000 Subject: [PATCH] * meson.build: Define DLL_EXPORT for shared library only. Fixes #1298. --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 8fe11bb21..cfbb5b9f5 100644 --- a/meson.build +++ b/meson.build @@ -383,7 +383,8 @@ ftoption_h = custom_target('ftoption.h', ft2_sources += ftoption_h ft2_defines += ['-DFT_CONFIG_OPTIONS_H='] -if host_machine.system() == 'windows' +if host_machine.system() == 'windows' and \ + get_option('default_library') == 'shared' ft2_defines += ['-DDLL_EXPORT=1'] endif