[Mesa-dev] [PATCH 44/48] meson: add windows specific linker flags
Eric Engestrom
eric.engestrom at intel.com
Tue Jun 12 11:38:04 UTC 2018
On Monday, 2018-06-11 15:56:11 -0700, Dylan Baker wrote:
> ---
> meson.build | 21 +++++++++++++++++++++
> 1 file changed, 21 insertions(+)
>
> diff --git a/meson.build b/meson.build
> index a244694fd4a..e1b3afbe688 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -847,6 +847,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'],
probably harmless, but it feels like libgcc and libstdc++ should be
only added to c, respectively cpp, not both.
> + )
> + endif
> +endif
> +
> if host_machine.cpu_family().startswith('x86') and cc.get_id() != 'msvc'
> pre_args += '-DUSE_SSE41'
> with_sse41 = true
> --
> 2.17.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list