Export only the absolutely necessary symbols in radeon vdpau targets.
Signed-off-by: Christian König <christian.koenig@amd.com>
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 \
libvdpau_r300_la_LDFLAGS = \
-module \
-version-number $(VDPAU_MAJOR):$(VDPAU_MINOR) \
+ -export-symbols-regex $(EXPORTS) \
-shared \
-no-undefined
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
libvdpau_r600_la_LDFLAGS = \
-module \
-version-number $(VDPAU_MAJOR):$(VDPAU_MINOR) \
+ -export-symbols-regex $(EXPORTS) \
-shared \
-no-undefined
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 \
libvdpau_radeonsi_la_LDFLAGS = \
-module \
-version-number $(VDPAU_MAJOR):$(VDPAU_MINOR) \
+ -export-symbols-regex $(EXPORTS) \
-shared \
-no-undefined