Initial step of cleaning the exported symbols from targets/omx

 - Mark omx_component_library_Setup as public
 - Drop export-symbols-regex

Signed-off-by: Emil Velikov <emil.l.veli...@gmail.com>
---
 src/gallium/state_trackers/omx/Makefile.am   | 1 +
 src/gallium/state_trackers/omx/entrypoint.h  | 2 +-
 src/gallium/targets/r600/omx/Makefile.am     | 4 +---
 src/gallium/targets/radeonsi/omx/Makefile.am | 4 +---
 4 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/src/gallium/state_trackers/omx/Makefile.am 
b/src/gallium/state_trackers/omx/Makefile.am
index 1983248..7972d79 100644
--- a/src/gallium/state_trackers/omx/Makefile.am
+++ b/src/gallium/state_trackers/omx/Makefile.am
@@ -24,6 +24,7 @@ include $(top_srcdir)/src/gallium/Automake.inc
 
 AM_CFLAGS = \
        $(GALLIUM_CFLAGS) \
+       $(VISIBILITY_CFLAGS) \
        $(OMX_CFLAGS)
 
 noinst_LTLIBRARIES = libomxtracker.la
diff --git a/src/gallium/state_trackers/omx/entrypoint.h 
b/src/gallium/state_trackers/omx/entrypoint.h
index af7c337..7625d7a 100644
--- a/src/gallium/state_trackers/omx/entrypoint.h
+++ b/src/gallium/state_trackers/omx/entrypoint.h
@@ -38,7 +38,7 @@
 
 #include "vl/vl_winsys.h"
 
-extern int omx_component_library_Setup(stLoaderComponentType **stComponents);
+PUBLIC extern int omx_component_library_Setup(stLoaderComponentType 
**stComponents);
 
 struct vl_screen *omx_get_screen(void);
 void omx_put_screen(void);
diff --git a/src/gallium/targets/r600/omx/Makefile.am 
b/src/gallium/targets/r600/omx/Makefile.am
index 7660a8d..3a1e22b 100644
--- a/src/gallium/targets/r600/omx/Makefile.am
+++ b/src/gallium/targets/r600/omx/Makefile.am
@@ -24,6 +24,7 @@ include $(top_srcdir)/src/gallium/Automake.inc
 
 AM_CFLAGS = \
        $(GALLIUM_CFLAGS) \
+       $(VISIBILITY_CFLAGS) \
        $(PTHREAD_CFLAGS) \
        $(LIBDRM_CFLAGS)
 AM_CPPFLAGS = \
@@ -33,15 +34,12 @@ AM_CPPFLAGS = \
 omxdir = $(OMX_LIB_INSTALL_DIR)
 omx_LTLIBRARIES = libomx_r600.la
 
-EXPORTS = '^(omx_component_library_Setup|radeon_drm_winsys_create)$$'
-
 libomx_r600_la_SOURCES = \
        drm_target.c \
        $(top_srcdir)/src/gallium/auxiliary/vl/vl_winsys_dri.c
 
 libomx_r600_la_LDFLAGS = \
        -module \
-       -export-symbols-regex $(EXPORTS) \
        -shared \
        -no-undefined
 
diff --git a/src/gallium/targets/radeonsi/omx/Makefile.am 
b/src/gallium/targets/radeonsi/omx/Makefile.am
index 5eea303..79ed287 100644
--- a/src/gallium/targets/radeonsi/omx/Makefile.am
+++ b/src/gallium/targets/radeonsi/omx/Makefile.am
@@ -24,6 +24,7 @@ include $(top_srcdir)/src/gallium/Automake.inc
 
 AM_CFLAGS = \
        $(GALLIUM_CFLAGS) \
+       $(VISIBILITY_CFLAGS) \
        $(PTHREAD_CFLAGS) \
        $(LIBDRM_CFLAGS)
 AM_CPPFLAGS = \
@@ -33,15 +34,12 @@ AM_CPPFLAGS = \
 omxdir = $(OMX_LIB_INSTALL_DIR)
 omx_LTLIBRARIES = libomx_radeonsi.la
 
-EXPORTS = '^(omx_component_library_Setup|radeon_drm_winsys_create)$$'
-
 libomx_radeonsi_la_SOURCES = \
        drm_target.c \
        $(top_srcdir)/src/gallium/auxiliary/vl/vl_winsys_dri.c
 
 libomx_radeonsi_la_LDFLAGS = \
        -module \
-       -export-symbols-regex $(EXPORTS) \
        -shared \
        -no-undefined
 
-- 
1.8.5.2

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to