gallium: Include winsock lib as a dependency for Windows
authorJesse Natalie <jenatali@microsoft.com>
Thu, 19 Nov 2020 02:17:45 +0000 (18:17 -0800)
committerJesse Natalie <jenatali@microsoft.com>
Wed, 2 Dec 2020 18:12:27 +0000 (10:12 -0800)
The gallium aux lib includes code that calls socket APIs. On Windows,
these APIs come from ws2_32.lib/dll (winsock2), so make sure consumers
link against that lib.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7680>

src/gallium/auxiliary/meson.build

index 79df2476e2a6e6d6ad09c345bfcd92b7919edf91..5344393e75e749958cde52a526232f54f364436b 100644 (file)
@@ -506,7 +506,7 @@ libgallium = static_library(
   cpp_args : [cpp_msvc_compat_args],
   gnu_symbol_visibility : 'hidden',
   dependencies : [
-    dep_libdrm, dep_llvm, dep_dl, dep_m, dep_thread, dep_lmsensors,
+    dep_libdrm, dep_llvm, dep_dl, dep_m, dep_thread, dep_lmsensors, dep_ws2_32,
     idep_nir, idep_nir_headers, idep_mesautil,
   ],
   build_by_default : false