mesa: replace VP/FP/ATIfs _Enabled flags with helper functions
[mesa.git] / src / mesa / drivers / x11 / SConscript
index b0173bee94c1f961f21c1d2fd2d2344544e97b29..59c8df4b3c235579c0aa559940e9ccd42180afa6 100644 (file)
@@ -3,6 +3,7 @@ Import('*')
 env = env.Clone()
 
 env.Append(CPPPATH = [
+    '#/src',
     '#/src/mapi',
     '#/src/mesa',
     '#/src/mesa/main',
@@ -16,6 +17,8 @@ env.Prepend(LIBPATH = env['X11_LIBPATH'])
 
 env.Prepend(LIBS = [
     glapi,
+    mesautil,
+    compiler,
     glsl,
     mesa,
 ])
@@ -31,6 +34,14 @@ sources = [
        'xm_tri.c',
 ]
 
+if env['platform'] != 'darwin':
+    # Disallow undefined symbols, except with Address Sanitizer, since libasan
+    # is not linked on shared libs, as it should be LD_PRELOAD'ed instead
+    if not env['asan']:
+        env.Append(SHLINKFLAGS = [
+            '-Wl,-z,defs',
+        ])
+
 # libGL.so.1.6
 libgl_1_6 = env.SharedLibrary(
     target ='GL',