diff options
| author | Yonggang Luo <luoyonggang@gmail.com> | 2023-12-15 18:50:09 +0800 |
|---|---|---|
| committer | Marge Bot <marge-bot@fdo.invalid> | 2025-09-13 08:23:07 +0000 |
| commit | 1758bc32ccb164fb93c98b75502d887cd1538c83 (patch) | |
| tree | 9086610a3abccfdab98b5c3720ffbf067a675c77 | |
| parent | 3c8ea260d08099695f7301eaf148f475d8f4b5d3 (diff) | |
meson: For windows, the with_ld_version_script won't take effect
On windows, both msvc/gcc are using vs_module_defs to export symbols. So avoid use with_ld_version_script on win32
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37289>
| -rw-r--r-- | meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build index b94a5565130..267625152c0 100644 --- a/meson.build +++ b/meson.build @@ -1490,7 +1490,7 @@ if cc.links('int main() { return 0; }', args : '-Wl,-Bsymbolic', name : 'Bsymbol ld_args_bsymbolic += '-Wl,-Bsymbolic' endif with_ld_version_script = false -if cc.links('int main() { return 0; }', +if host_machine.system() != 'windows' and cc.links('int main() { return 0; }', args : '-Wl,--version-script=@0@'.format( join_paths(meson.current_source_dir(), 'build-support/conftest.map')), name : 'version-script') |