From: Emil Velikov Date: Fri, 4 Apr 2014 20:44:36 +0000 (+0100) Subject: targets/gbm: add version-script to limit exported symbols X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4eaa3c9b60e363fbbba1508b78f52d26e8c186bf;p=mesa.git targets/gbm: add version-script to limit exported symbols Signed-off-by: Emil Velikov --- diff --git a/src/gallium/targets/gbm/Makefile.am b/src/gallium/targets/gbm/Makefile.am index 0bd1d68ca69..a8945a97f1c 100644 --- a/src/gallium/targets/gbm/Makefile.am +++ b/src/gallium/targets/gbm/Makefile.am @@ -67,6 +67,7 @@ gbm_gallium_drm_la_LDFLAGS = \ -module \ -no-undefined \ -avoid-version \ + -Wl,--version-script=$(top_srcdir)/src/gallium/targets/gbm/gbm.sym \ $(GC_SECTIONS) \ $(LD_NO_UNDEFINED) diff --git a/src/gallium/targets/gbm/gbm.sym b/src/gallium/targets/gbm/gbm.sym new file mode 100644 index 00000000000..d5fa0b9a8d2 --- /dev/null +++ b/src/gallium/targets/gbm/gbm.sym @@ -0,0 +1,6 @@ +{ + global: + gbm_backend; + local: + *; +};