scons: Include headers from the local include directory first.
authorVinson Lee <vlee@vmware.com>
Mon, 26 Apr 2010 08:08:34 +0000 (01:08 -0700)
committerVinson Lee <vlee@vmware.com>
Mon, 26 Apr 2010 08:08:34 +0000 (01:08 -0700)
Certain headers, such as GL/glew.h, are in both the Mesa include and the
default installed include directories. On recent distros the needed
symbols can be found in both places. On older distros the installed
headers could be lacking symbols, so for a header that exists in both
places, the local one should be found first.

SConstruct

index de3f6ea5c33f3457bfbacdccfe3bcb6cca4f76e3..3a4ff9a3fac94a8314d247cffb7316b178e3772c 100644 (file)
@@ -113,8 +113,10 @@ if env['llvm'] and 'llvmpipe' not in env['drivers']:
     env['drivers'].append('llvmpipe')
 
 # Includes
-env.Append(CPPPATH = [
+env.Prepend(CPPPATH = [
        '#/include',
+])
+env.Append(CPPPATH = [
        '#/src/gallium/include',
        '#/src/gallium/auxiliary',
        '#/src/gallium/drivers',