From ffe38d6dae9f05232ab1162925524200da949672 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 23 Sep 2016 16:31:11 +0530 Subject: [PATCH] meson: Only use --version-script if not using MSVC --- orc/meson.build | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/orc/meson.build b/orc/meson.build index 250cc8c..dc324cd 100644 --- a/orc/meson.build +++ b/orc/meson.build @@ -100,6 +100,12 @@ orc_c_args = ['-DORC_ENABLE_UNSTABLE_API', '-D_GNU_SOURCE'] orc_dependencies = [libm, librt, liblog] +if cc.get_id() != 'msvc' + link_args = ['-Wl,--version-script,' + meson.current_source_dir() + '/orc.map'] +else + link_args = [] +endif + # FIXME: what about shared and/or static lib? look at options? orc_lib = shared_library('orc-' + orc_api, orc_sources, version : libversion, @@ -107,7 +113,7 @@ orc_lib = shared_library('orc-' + orc_api, orc_sources, include_directories : orc_inc, c_args : orc_c_args, dependencies : orc_dependencies, - link_args : ['-Wl,--version-script,' + meson.current_source_dir() + '/orc.map'], + link_args : link_args, link_depends : 'orc.map', install : true) -- 2.7.4