[Mesa-dev] [PATCH v3 45/48] meson: Add linker arguments for windows
Dylan Baker
dylan at pnwbakers.com
Tue Aug 7 00:51:25 UTC 2018
---
meson.build | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/meson.build b/meson.build
index bbfd7c3c73f..594d3f804fc 100644
--- a/meson.build
+++ b/meson.build
@@ -887,6 +887,27 @@ else
endforeach
endif
+# set linker arguments
+if host_machine.system() == 'windows'
+ if cc.get_id() == 'msvc'
+ add_project_link_arguments(
+ '/fixed:no',
+ '/incremental:no',
+ '/dynamicbase',
+ '/nxcompat',
+ language : ['c', 'cpp'],
+ )
+ else
+ add_project_link_arguments(
+ '-Wl,--nxcompat',
+ '-Wl,--dynamicbase',
+ '-static-libgcc',
+ '-static-libstdc++',
+ language : ['c', 'cpp'],
+ )
+ endif
+endif
+
if host_machine.cpu_family().startswith('x86') and cc.get_id() != 'msvc'
pre_args += '-DUSE_SSE41'
with_sse41 = true
--
2.18.0
More information about the mesa-dev
mailing list