targets/gbm: add version-script to limit exported symbols
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 4 Apr 2014 20:44:36 +0000 (21:44 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 2 May 2014 20:48:26 +0000 (21:48 +0100)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/targets/gbm/Makefile.am
src/gallium/targets/gbm/gbm.sym [new file with mode: 0644]

index 0bd1d68ca692c658cd9010fd769871d9c4da76f0..a8945a97f1ce24ee250e5fa777fc6112ebf4a5f2 100644 (file)
@@ -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 (file)
index 0000000..d5fa0b9
--- /dev/null
@@ -0,0 +1,6 @@
+{
+       global:
+               gbm_backend;
+       local:
+               *;
+};