diff options
author | Kent Mein <mein@cs.umn.edu> | 2004-03-10 22:16:08 +0300 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2004-03-10 22:16:08 +0300 |
commit | 24954c9f3fd3593a8322ec088276fe3d2c7c8b19 (patch) | |
tree | cfedff162767d7be7a19c65d37826a39f7f0ee69 /SConstruct | |
parent | 0ab4e6e503fb3d72dfb680c728ef9e3b6937364c (diff) |
Modifications to get scons to work under Solaris. Currently
its setup to use gcc and you need to edit config.opts and replace cc and CC
with gcc and g++ but other than that it compiles now.
Kent
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/SConstruct b/SConstruct index 68892353ec0..ee95f6a0e6f 100644 --- a/SConstruct +++ b/SConstruct @@ -354,14 +354,12 @@ elif string.find (sys.platform, 'sunos') != -1: build_blender_plugin = 'false' release_flags = ['-O2'] debug_flags = ['-O2', '-g'] - extra_flags = ['-pipe', '-fPIC', '-funsigned-char'] + extra_flags = ['-pipe', '-fPIC', '-funsigned-char', '-DSUN_OGL_NO_VERTEX_MACROS'] cxxflags = [] defines = [] - env['ENV']['CC']='gcc' - env['ENV']['CXX']='g++' warn_flags = ['-Wall', '-W'] window_system = 'X11' - platform_libs = ['m', 'util'] + platform_libs = ['stdc++', 'dl', 'm'] platform_libpath = [] platform_linkflags = [] extra_includes = [] @@ -378,10 +376,10 @@ elif string.find (sys.platform, 'sunos') != -1: jpeg_libpath = [] jpeg_include = [] # OpenGL library information - opengl_lib = ['GL', 'GLU'] + opengl_lib = ['GL', 'GLU', 'X11'] opengl_static = [] - opengl_libpath = [] - opengl_include = [] + opengl_libpath = ['/usr/openwin/include'] + opengl_include = ['/usr/openwin/lib'] # SDL library information sdl_env.ParseConfig ('sdl-config --cflags --libs') sdl_cflags = sdl_env.Dictionary()['CCFLAGS'] |