radeon/vdpau: only export necessary symbols
authorChristian König <christian.koenig@amd.com>
Wed, 25 Sep 2013 13:51:08 +0000 (15:51 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 7 Oct 2013 09:16:53 +0000 (11:16 +0200)
Export only the absolutely necessary symbols in radeon vdpau targets.

Signed-off-by: Christian König <christian.koenig@amd.com>
src/gallium/targets/r300/vdpau/Makefile.am
src/gallium/targets/r600/vdpau/Makefile.am
src/gallium/targets/radeonsi/vdpau/Makefile.am

index c928955cca88d7da3eebbe374939293b960eeeba..d44144badd7857b2a6c79e109cfb2e791a2f9fe1 100644 (file)
@@ -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
 
index e45fd93c474c5f26b5711f748ae224154b54bb31..d7eb030d8675ebdd722ac69cbe1bf82c868dedd2 100644 (file)
@@ -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
 
index bda88e69997d5408fa1220dbc98891226a36f201..b5e163509d766b4f7ee6009694a7f298b0fbe97e 100644 (file)
@@ -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