From: Jose Fonseca Date: Thu, 26 Nov 2015 15:06:35 +0000 (+0000) Subject: scons: Use LD version script for libgl-xlib. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ea3f394e4a2bd8303d199acd0642f39784b7e27f;p=mesa.git scons: Use LD version script for libgl-xlib. Trivial. --- diff --git a/src/gallium/targets/libgl-xlib/SConscript b/src/gallium/targets/libgl-xlib/SConscript index df5a220ac25..687a8b9d3ed 100644 --- a/src/gallium/targets/libgl-xlib/SConscript +++ b/src/gallium/targets/libgl-xlib/SConscript @@ -46,9 +46,13 @@ if env['llvm']: env.Append(CPPDEFINES = ['GALLIUM_LLVMPIPE']) env.Prepend(LIBS = [llvmpipe]) -# Disallow undefined symbols if env['platform'] != 'darwin': - env.Append(SHLINKFLAGS = ['-Wl,-z,defs']) + env.Append(SHLINKFLAGS = [ + # Disallow undefined symbols + '-Wl,-z,defs', + # Restrict exported symbols + '-Wl,--version-script=%s' % File("libgl-xlib.sym").srcnode().path, + ]) # libGL.so.1.5 libgl_1_5 = env.SharedLibrary(