diff options
author | Richard Hughes <richard@hughsie.com> | 2019-12-04 09:39:37 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2019-12-04 21:00:42 +0000 |
commit | bb6c6bfadf2c40c959df88810b2f5d32726b35e2 (patch) | |
tree | 73038f11f55c98a741bef959e61f27a1f21dc2ab | |
parent | c37215b8be2b70746682cb1e1dda716ee88ec57e (diff) | |
download | gusb-bb6c6bfadf2c40c959df88810b2f5d32726b35e2.tar.gz |
Fix compilation on macOS
Fixes https://github.com/hughsie/libgusb/issues/11
-rw-r--r-- | gusb/meson.build | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gusb/meson.build b/gusb/meson.build index 448527b..b721ef4 100644 --- a/gusb/meson.build +++ b/gusb/meson.build @@ -38,7 +38,10 @@ install_headers([ ) mapfile = 'libgusb.ver' -vflag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), mapfile) +vflag = [] +if host_machine.system() in ['linux', 'windows'] + vflag += '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), mapfile) +endif gusb = library( 'gusb', sources : [ |