summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-07-21 19:36:38 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2020-07-21 19:37:51 +0100
commitf91fb0a0b6c05ea43070201892372d225e5c8f50 (patch)
treeac27f225f268475bf171372a551f98b8d6e9ae61 /src
parentd9dd5e7fd9aae0adce5aff4a7287107802999fd7 (diff)
downloadlibepoxy-f91fb0a0b6c05ea43070201892372d225e5c8f50.tar.gz
Use Meson's darwin_versions argumentdarwin_versions
Instead of tweaking the linker flags ourselves. This allows Meson to do the right thing, and pass the arguments only where needed.
Diffstat (limited to 'src')
-rw-r--r--src/meson.build5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/meson.build b/src/meson.build
index 371fd4b..881e087 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -53,9 +53,7 @@ if host_system == 'linux' and cc.get_id() == 'gcc'
endif
# Maintain compatibility with autotools; see: https://github.com/anholt/libepoxy/issues/108
-if host_system == 'darwin'
- common_ldflags += [ '-compatibility_version 1', '-current_version 1.0', ]
-endif
+darwin_versions = [1, '1.0']
epoxy_deps = [ dl_dep, ]
if host_system == 'windows'
@@ -66,6 +64,7 @@ libepoxy = library(
'epoxy',
sources: epoxy_sources + epoxy_headers,
version: '0.0.0',
+ darwin_versions: darwin_versions,
install: true,
dependencies: epoxy_deps,
include_directories: libepoxy_inc,