summaryrefslogtreecommitdiff
path: root/src/glsl
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2011-01-12 15:32:17 +0000
committerJosé Fonseca <jfonseca@vmware.com>2011-01-12 15:32:17 +0000
commit6d670f6c0f3b9383b8b4c8ed12beaeec56928266 (patch)
treec5fde95c1140ef67fff287d8a8f078f533ed84f1 /src/glsl
parent46662de68b72634c9059ad450e8f6c2edf36c092 (diff)
getopt: Import OpenBSD getopt implementation for MSVC.
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/SConscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/SConscript b/src/glsl/SConscript
index 1757605f7c..577aedfe61 100644
--- a/src/glsl/SConscript
+++ b/src/glsl/SConscript
@@ -80,6 +80,10 @@ sources = [
'strtod.c',
]
+if env['msvc']:
+ env.Prepend(CPPPATH = ['#/src/getopt'])
+ env.PrependUnique(LIBS = [getopt])
+
env.Prepend(LIBS = ['talloc'])
env.Append(CPPPATH = ['#/src/glsl'])