diff options
author | José Fonseca <jfonseca@vmware.com> | 2011-06-17 20:12:18 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2011-06-30 11:34:51 +0100 |
commit | 2699fce0d69db5158427c8b6c8194b2eefc5e58b (patch) | |
tree | 4e26b68c4615e93cda1f6685958fddb70657bc8a /scons/gallium.py | |
parent | 0edb40cb69124722691011b0db1c8b7376217728 (diff) |
scons: Buid libGL.so (WIP).
Diffstat (limited to 'scons/gallium.py')
-rwxr-xr-x | scons/gallium.py | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/scons/gallium.py b/scons/gallium.py index bde1a3c6df7..7b239635b9c 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -289,8 +289,21 @@ def generate(env): 'PTHREADS', 'HAVE_POSIX_MEMALIGN', ] - if env['platform'] == 'darwin': - cppdefines += ['_DARWIN_C_SOURCE'] + if env['platform'] == 'darwin': + cppdefines += [ + '_DARWIN_C_SOURCE', + 'GLX_USE_APPLEGL', + 'GLX_DIRECT_RENDERING', + ] + else: + cppdefines += [ + 'GLX_DIRECT_RENDERING', + 'GLX_INDIRECT_RENDERING', + ] + if env['platform'] in ('linux', 'freebsd'): + cppdefines += ['HAVE_ALIAS'] + else: + cppdefines += ['GLX_ALIAS_UNSUPPORTED'] if platform == 'windows': cppdefines += [ 'WIN32', @@ -381,6 +394,8 @@ def generate(env): ccflags += ['-O0'] else: ccflags += ['-O3'] + # Work around aliasing bugs - developers should comment this out + ccflags += ['-fno-strict-aliasing'] ccflags += ['-g3'] if env['build'] in ('checked', 'profile'): # See http://code.google.com/p/jrfonseca/wiki/Gprof2Dot#Which_options_should_I_pass_to_gcc_when_compiling_for_profiling? |