summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Fonseca <[email protected]>2015-11-26 15:06:35 +0000
committerJose Fonseca <[email protected]>2015-11-27 14:14:25 +0000
commitea3f394e4a2bd8303d199acd0642f39784b7e27f (patch)
tree973394657b761974b05d11196afe645a3d40982e
parenta11955b9f9ffe52c21dd8551d1de4f55f218db54 (diff)
scons: Use LD version script for libgl-xlib.
Trivial.
-rw-r--r--src/gallium/targets/libgl-xlib/SConscript8
1 files changed, 6 insertions, 2 deletions
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(