summaryrefslogtreecommitdiffstats
path: root/src/glu/sgi
diff options
context:
space:
mode:
authorAlexander von Gluck IV <[email protected]>2012-01-16 12:42:05 +0000
committerJosé Fonseca <[email protected]>2012-01-17 20:01:14 +0000
commit64ae209d50e2d28f46a3f0c6880e40e94ba23569 (patch)
tree541e10e7fcfea05238fa6467b6423f15a478a437 /src/glu/sgi
parent4ba4853c0a613f771b44806cd5ce376838479802 (diff)
scons: Add Haiku build support
Enables building stock Mesa under the Haiku operating system.
Diffstat (limited to 'src/glu/sgi')
-rw-r--r--src/glu/sgi/SConscript16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/glu/sgi/SConscript b/src/glu/sgi/SConscript
index 94c74267fd2..97405d86911 100644
--- a/src/glu/sgi/SConscript
+++ b/src/glu/sgi/SConscript
@@ -122,12 +122,18 @@ else:
])
target = 'glu'
-glu = env.SharedLibrary(
- target = target,
- source = sources
-)
+if env['platform'] == 'haiku':
+ glu = env.StaticLibrary(
+ target = target,
+ source = sources
+ )
+else:
+ glu = env.SharedLibrary(
+ target = target,
+ source = sources
+ )
+ env.Alias('glu', env.InstallSharedLibrary(glu, version=(1, 3, 0)))
-env.Alias('glu', env.InstallSharedLibrary(glu, version=(1, 3, 0)))
if env['platform'] == 'windows':
glu = env.FindIxes(glu, 'LIBPREFIX', 'LIBSUFFIX')