[phodav: 1/2] meson: Check --version-script linker option before using.




commit fbf42b6ce21d16508eea905acc179cbab12a40e8
Author: Biswapriyo Nath <nathbappai gmail com>
Date:   Mon Jul 26 19:20:49 2021 +0530

    meson: Check --version-script linker option before using.
    
    mingw clang does not support --version-script linker option.

 libphodav/meson.build | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/libphodav/meson.build b/libphodav/meson.build
index 5443ce0..4525e35 100644
--- a/libphodav/meson.build
+++ b/libphodav/meson.build
@@ -30,7 +30,9 @@ if not dependency('glib-2.0', version : '>= 2.51.2', required: false).found()
 endif
 
 mapfile = 'libphodav.syms'
-vflag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), mapfile)
+vflag = compiler.get_supported_link_arguments([
+  '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), mapfile),
+])
 
 libphodav = library(
   'phodav-2.0',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]