diff options
-rw-r--r-- | src/gallium/targets/libgl-xlib/Makefile.am | 5 | ||||
-rw-r--r-- | src/gallium/targets/libgl-xlib/libgl-xlib.sym | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/targets/libgl-xlib/Makefile.am b/src/gallium/targets/libgl-xlib/Makefile.am index 76513332a5b..4ed2025a765 100644 --- a/src/gallium/targets/libgl-xlib/Makefile.am +++ b/src/gallium/targets/libgl-xlib/Makefile.am @@ -50,6 +50,11 @@ lib@GL_LIB@_la_LDFLAGS = \ $(GC_SECTIONS) \ $(LD_NO_UNDEFINED) +if HAVE_LD_VERSION_SCRIPT +lib@GL_LIB@_la_LDFLAGS += \ + -Wl,--version-script=$(top_srcdir)/src/gallium/targets/libgl-xlib/libgl-xlib.sym +endif + lib@GL_LIB@_la_LIBADD = \ $(top_builddir)/src/gallium/state_trackers/glx/xlib/libxlib.la \ $(top_builddir)/src/gallium/winsys/sw/xlib/libws_xlib.la \ diff --git a/src/gallium/targets/libgl-xlib/libgl-xlib.sym b/src/gallium/targets/libgl-xlib/libgl-xlib.sym new file mode 100644 index 00000000000..956fa40c996 --- /dev/null +++ b/src/gallium/targets/libgl-xlib/libgl-xlib.sym @@ -0,0 +1,7 @@ +{ + global: + gl*; + mgl*; + local: + *; +};
\ No newline at end of file |