From 4eaa3c9b60e363fbbba1508b78f52d26e8c186bf Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 4 Apr 2014 21:44:36 +0100 Subject: [PATCH] targets/gbm: add version-script to limit exported symbols Signed-off-by: Emil Velikov --- src/gallium/targets/gbm/Makefile.am | 1 + src/gallium/targets/gbm/gbm.sym | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 src/gallium/targets/gbm/gbm.sym 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: + *; +}; -- 2.30.2