Module: Mesa
Branch: master
Commit: 6a519a157b5fe5d449444c04a0429e8a24546e9c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6a519a157b5fe5d449444c04a0429e8a24546e9c

Author: Brian Paul <bri...@vmware.com>
Date:   Fri Apr 13 15:34:23 2018 -0600

gallium/osmesa: link with winsock2 library on Windows

To fix the MSVC build.  The build broke because we started to compile
the ddebug code on Windows after the mtypes.h changes.  Building ddebug
caused us to also use the u_network.c code for the first time.

Reviewed-by: Charmaine Lee <charmai...@vmware.com>

---

 src/gallium/targets/osmesa/SConscript | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/targets/osmesa/SConscript 
b/src/gallium/targets/osmesa/SConscript
index f49f1fe538..3df5c50097 100644
--- a/src/gallium/targets/osmesa/SConscript
+++ b/src/gallium/targets/osmesa/SConscript
@@ -39,6 +39,9 @@ if env['platform'] == 'windows':
         sources += ['osmesa.mingw.def']
     else:
         sources += ['osmesa.def']
+    # Link with winsock2 library
+    env.Append(LIBS = ['ws2_32'])
+
 
 gallium_osmesa = env.SharedLibrary(
     target ='osmesa',

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to