fontconfig: Branch 'main'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 src/meson.build |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit e503eae0f935007ad2ed97102854627c503b24a0
Author: Christoph Reiter <reiter.christoph@xxxxxxxxx>
Date:   Sun Feb 18 13:38:11 2024 +0100

    meson: fix config relocation on Windows
    
    The config relocation code in fccfg.c is guarded by DLL_EXPORT, but
    that was never set in the meson port, unlike with autotools. Also
    dllexport was only set for msvc.
    
    Unify things to set FcPublic and DLL_EXPORT when building a shared
    library on Windows, for all compilers.

diff --git a/src/meson.build b/src/meson.build
index 8430c65..63c7340 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -57,8 +57,9 @@ fcobjshash_h = custom_target('fcobjshash.h',
 # Define FcPublic appropriately for exports on windows
 fc_extra_c_args = []
 
-if cc.get_argument_syntax() == 'msvc'
+if host_machine.system() == 'windows' and get_option('default_library') == 'shared'
   fc_extra_c_args += '-DFcPublic=__declspec(dllexport)'
+  fc_extra_c_args += '-DDLL_EXPORT'
 endif
 
 libfontconfig = library('fontconfig',



[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux