From 719000bd7d7d227a721ee24ea49a55ab9a972b56 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Fri, 19 Jul 2013 13:08:07 +0100 Subject: scons: Disallow undefined symbols in Xlib libGL.so. It's not the first time that, due to missing build dependencies or incomplete commits, we end up with a broken libGL.so that's missing symbols, causing all tests to fail catastrophically. Instead try to catch this sort of issues earlier. --- src/gallium/targets/libgl-xlib/SConscript | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/targets') diff --git a/src/gallium/targets/libgl-xlib/SConscript b/src/gallium/targets/libgl-xlib/SConscript index 58ed6d4a30f..952ab62fdde 100644 --- a/src/gallium/targets/libgl-xlib/SConscript +++ b/src/gallium/targets/libgl-xlib/SConscript @@ -45,6 +45,9 @@ if env['llvm']: env.Append(CPPDEFINES = ['GALLIUM_LLVMPIPE']) env.Prepend(LIBS = [llvmpipe]) +# Disallow undefined symbols +env.Append(SHLINKFLAGS = ['-Wl,-z,defs']) + # libGL.so.1.5 libgl_1_5 = env.SharedLibrary( target ='GL', -- cgit v1.2.3