summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets
diff options
context:
space:
mode:
authorChristian König <[email protected]>2013-09-25 15:51:08 +0200
committerChristian König <[email protected]>2013-10-07 11:16:53 +0200
commit289d928c8e13ad79c9d6e705caf1170986f37ad1 (patch)
tree6bce89d3e4fd0b987d2515dc9137901acd393fc7 /src/gallium/targets
parent731f5471fb4ba8e0ab889c58373ad64d07b1c42f (diff)
radeon/vdpau: only export necessary symbols
Export only the absolutely necessary symbols in radeon vdpau targets. Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/targets')
-rw-r--r--src/gallium/targets/r300/vdpau/Makefile.am3
-rw-r--r--src/gallium/targets/r600/vdpau/Makefile.am3
-rw-r--r--src/gallium/targets/radeonsi/vdpau/Makefile.am3
3 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/targets/r300/vdpau/Makefile.am b/src/gallium/targets/r300/vdpau/Makefile.am
index c928955cca8..d44144badd7 100644
--- a/src/gallium/targets/r300/vdpau/Makefile.am
+++ b/src/gallium/targets/r300/vdpau/Makefile.am
@@ -33,6 +33,8 @@ AM_CPPFLAGS = \
vdpaudir = $(VDPAU_LIB_INSTALL_DIR)
vdpau_LTLIBRARIES = libvdpau_r300.la
+EXPORTS = '^(vdp_imp_device_create_x11|radeon_drm_winsys_create)$$'
+
nodist_EXTRA_libvdpau_r300_la_SOURCES = dummy.cpp
libvdpau_r300_la_SOURCES = \
../drm_target.c \
@@ -41,6 +43,7 @@ libvdpau_r300_la_SOURCES = \
libvdpau_r300_la_LDFLAGS = \
-module \
-version-number $(VDPAU_MAJOR):$(VDPAU_MINOR) \
+ -export-symbols-regex $(EXPORTS) \
-shared \
-no-undefined
diff --git a/src/gallium/targets/r600/vdpau/Makefile.am b/src/gallium/targets/r600/vdpau/Makefile.am
index e45fd93c474..d7eb030d867 100644
--- a/src/gallium/targets/r600/vdpau/Makefile.am
+++ b/src/gallium/targets/r600/vdpau/Makefile.am
@@ -33,6 +33,8 @@ AM_CPPFLAGS = \
vdpaudir = $(VDPAU_LIB_INSTALL_DIR)
vdpau_LTLIBRARIES = libvdpau_r600.la
+EXPORTS = '^(vdp_imp_device_create_x11|radeon_drm_winsys_create)$$'
+
libvdpau_r600_la_SOURCES = \
../drm_target.c \
$(top_srcdir)/src/gallium/auxiliary/vl/vl_winsys_dri.c
@@ -40,6 +42,7 @@ libvdpau_r600_la_SOURCES = \
libvdpau_r600_la_LDFLAGS = \
-module \
-version-number $(VDPAU_MAJOR):$(VDPAU_MINOR) \
+ -export-symbols-regex $(EXPORTS) \
-shared \
-no-undefined
diff --git a/src/gallium/targets/radeonsi/vdpau/Makefile.am b/src/gallium/targets/radeonsi/vdpau/Makefile.am
index bda88e69997..b5e163509d7 100644
--- a/src/gallium/targets/radeonsi/vdpau/Makefile.am
+++ b/src/gallium/targets/radeonsi/vdpau/Makefile.am
@@ -33,6 +33,8 @@ AM_CPPFLAGS = \
vdpaudir = $(VDPAU_LIB_INSTALL_DIR)
vdpau_LTLIBRARIES = libvdpau_radeonsi.la
+EXPORTS = '^(vdp_imp_device_create_x11|radeon_drm_winsys_create)$$'
+
nodist_EXTRA_libvdpau_radeonsi_la_SOURCES = dummy.cpp
libvdpau_radeonsi_la_SOURCES = \
../drm_target.c \
@@ -41,6 +43,7 @@ libvdpau_radeonsi_la_SOURCES = \
libvdpau_radeonsi_la_LDFLAGS = \
-module \
-version-number $(VDPAU_MAJOR):$(VDPAU_MINOR) \
+ -export-symbols-regex $(EXPORTS) \
-shared \
-no-undefined