From 1ea1767f72906d833bf9070c2aa9e664885ed72d Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 13 Mar 2014 02:28:21 +0000 Subject: targets/omx: use GALLIUM_OMX_LINKER_FLAGS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Emil Velikov Reviewed-by: Christian König --- src/gallium/Automake.inc | 6 ++++++ src/gallium/targets/r600/omx/Makefile.am | 10 +++------- src/gallium/targets/radeonsi/omx/Makefile.am | 10 +++------- 3 files changed, 12 insertions(+), 14 deletions(-) (limited to 'src/gallium') diff --git a/src/gallium/Automake.inc b/src/gallium/Automake.inc index 39475d7dc61..f064a879313 100644 --- a/src/gallium/Automake.inc +++ b/src/gallium/Automake.inc @@ -74,6 +74,12 @@ GALLIUM_XVMC_LINKER_FLAGS = \ -export-symbols-regex '^XvMC' \ -no-undefined +GALLIUM_OMX_LINKER_FLAGS = \ + -shared \ + -module \ + -no-undefined \ + -export-symbols-regex $(EXPORTS) + GALLIUM_VDPAU_LIB_DEPS = \ $(top_builddir)/src/gallium/auxiliary/libgallium.la \ $(top_builddir)/src/gallium/state_trackers/vdpau/libvdpautracker.la \ diff --git a/src/gallium/targets/r600/omx/Makefile.am b/src/gallium/targets/r600/omx/Makefile.am index 3776771841e..0aa469ba035 100644 --- a/src/gallium/targets/r600/omx/Makefile.am +++ b/src/gallium/targets/r600/omx/Makefile.am @@ -20,6 +20,8 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. +EXPORTS = '^(omx_component_library_Setup|radeon_drm_winsys_create)$$' + include $(top_srcdir)/src/gallium/Automake.inc AM_CFLAGS = \ @@ -34,17 +36,11 @@ 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 +libomx_r600_la_LDFLAGS = $(GALLIUM_OMX_LINKER_FLAGS) libomx_r600_la_LIBADD = \ $(top_builddir)/src/gallium/drivers/r600/libr600.la \ diff --git a/src/gallium/targets/radeonsi/omx/Makefile.am b/src/gallium/targets/radeonsi/omx/Makefile.am index 1eaa4b13707..e85eb11378e 100644 --- a/src/gallium/targets/radeonsi/omx/Makefile.am +++ b/src/gallium/targets/radeonsi/omx/Makefile.am @@ -20,6 +20,8 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. +EXPORTS = '^(omx_component_library_Setup|radeon_drm_winsys_create)$$' + include $(top_srcdir)/src/gallium/Automake.inc AM_CFLAGS = \ @@ -34,17 +36,11 @@ 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 +libomx_radeonsi_la_LDFLAGS = $(GALLIUM_OMX_LINKER_FLAGS) libomx_radeonsi_la_LIBADD = \ $(top_builddir)/src/gallium/drivers/radeonsi/libradeonsi.la \ -- cgit v1.2.3