build: Add linker flags for macOS
On Apple systems we need to maintain backward compatibility with builds
of Graphene generated via autotools; this means adding the compatibility
versions linker flags that libtool automatically adds.
@@ -102,6 +102,11 @@ if host_machine.system().contains('linux')
endforeach
endif
+# Maintain compatibility with Autotools on macOS
+if host_machine.system().contains('darwin')
+ graphene_link_args += [ '-compatibility_version=1', '-current_version=1.0', ]
+endif
+
libtype = get_option('default_library')
if libtype != 'static'
