freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] * meson.build: Fix compatibility versio


From: Werner Lemberg (@wl)
Subject: [Git][freetype/freetype][master] * meson.build: Fix compatibility version on MacOS.
Date: Sun, 21 Nov 2021 09:42:41 +0000

Werner Lemberg pushed to branch master at FreeType / FreeType

Commits:

1 changed file:

Changes:

  • meson.build
    ... ... @@ -237,6 +237,20 @@ endif
    237 237
     ft2_deps = []
    
    238 238
     
    
    239 239
     
    
    240
    +# Correct compatibility version for OS x
    
    241
    +#
    
    242
    +# OSX sets the compatibility_version (aka libtools version) differently from
    
    243
    +# the library name.
    
    244
    +#
    
    245
    +if host_machine.system() == 'darwin'
    
    246
    +  # Maintain compatibility with autotools on macOS
    
    247
    +  common_ldflags = [
    
    248
    +    '-compatibility_version', ft2_pkgconfig_version.split('.')[0],
    
    249
    +    '-current_version', ft2_pkgconfig_version
    
    250
    +  ]
    
    251
    +endif
    
    252
    +
    
    253
    +
    
    240 254
     # Generate `ftoption.h` based on available dependencies.
    
    241 255
     
    
    242 256
     process_header_command = [python_exe,
    
    ... ... @@ -344,6 +358,7 @@ ft2_lib = library('freetype',
    344 358
       dependencies: ft2_deps,
    
    345 359
       install: true,
    
    346 360
       version: ft2_so_version,
    
    361
    +  link_args: common_ldflags,
    
    347 362
     )
    
    348 363
     
    
    349 364
     
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]