diff options
author | Richard Hughes <richard@hughsie.com> | 2019-12-04 09:39:37 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2019-12-04 12:30:23 +0000 |
commit | 4a716b919867a6236fecd851a64a6ac095a84d19 (patch) | |
tree | 73038f11f55c98a741bef959e61f27a1f21dc2ab | |
parent | c37215b8be2b70746682cb1e1dda716ee88ec57e (diff) | |
download | gusb-wip/hughsie/osx.tar.gz |
Fix compilation on macOSwip/hughsie/osx
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 : [ |