env = env.Clone()
env.Append(CPPPATH = [
+ '#/src',
'#/src/mapi',
'#/src/mesa',
'#/src/mesa/main',
env.Prepend(LIBS = [
glapi,
+ mesautil,
+ compiler,
glsl,
mesa,
])
'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',