diff options
author | Alexander von Gluck IV <[email protected]> | 2012-01-16 12:42:05 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2012-01-17 20:01:14 +0000 |
commit | 64ae209d50e2d28f46a3f0c6880e40e94ba23569 (patch) | |
tree | 541e10e7fcfea05238fa6467b6423f15a478a437 /src/glu/sgi/SConscript | |
parent | 4ba4853c0a613f771b44806cd5ce376838479802 (diff) |
scons: Add Haiku build support
Enables building stock Mesa under the Haiku operating system.
Diffstat (limited to 'src/glu/sgi/SConscript')
-rw-r--r-- | src/glu/sgi/SConscript | 16 |
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') |