Werner Lemberg pushed to branch master at FreeType / FreeType
Commits:
-
896630be
by Lukas Oberhuber at 2021-11-21T10:41:53+01:00
1 changed file:
Changes:
... | ... | @@ -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 |
|