summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/osmesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2018-04-13 15:34:23 -0600
committerBrian Paul <[email protected]>2018-04-13 19:06:55 -0600
commit6a519a157b5fe5d449444c04a0429e8a24546e9c (patch)
treeacecb30d975cb3b33efbed6c4aa8de3826d969d6 /src/gallium/targets/osmesa
parent201c08c463f95e4906ef9858597d17867b293fd4 (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/targets/osmesa')
-rw-r--r--src/gallium/targets/osmesa/SConscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/targets/osmesa/SConscript b/src/gallium/targets/osmesa/SConscript
index f49f1fe538e..3df5c500976 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',