diff options
-rw-r--r-- | src/meson.build | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/meson.build b/src/meson.build index ecd032a..c3cda2c 100644 --- a/src/meson.build +++ b/src/meson.build @@ -51,10 +51,14 @@ foreach h: headers epoxy_headers += join_paths(meson.source_root(), 'include/epoxy/@0@'.format(h)) endforeach +common_ldflags = [] if cc.get_id() == 'gcc' common_ldflags = [ '-Wl,-Bsymbolic', '-Wl,-z,relro', '-Wl,-z,now', ] -else - common_ldflags = [] +endif + +# Maintain compatibility with autotools; see: https://github.com/anholt/libepoxy/issues/108 +if host_system == 'osx' + common_ldflags += [ '-compatibility_version 1', '-current_version 1.0', ] endif epoxy_deps = [ dl_dep, ] |