summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gallium/winsys/gdi/SConscript14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/gallium/winsys/gdi/SConscript b/src/gallium/winsys/gdi/SConscript
index b463fa6505..fdcdde101a 100644
--- a/src/gallium/winsys/gdi/SConscript
+++ b/src/gallium/winsys/gdi/SConscript
@@ -12,6 +12,15 @@ if env['platform'] == 'windows':
])
env.Append(CPPDEFINES = [
+ '__GL_EXPORTS',
+ 'BUILD_GL32',
+ '_GNU_H_WINDOWS32_DEFINES',
+ ])
+
+ env.Append(LIBS = [
+ 'gdi32',
+ 'user32',ss
+ 'kernel32',
])
sources = [
@@ -23,11 +32,6 @@ if env['platform'] == 'windows':
softpipe,
]
- env.Append(LIBS = [
- 'gdi32',
- 'user32'
- ])
-
env.SharedLibrary(
target ='opengl32',
source = sources,