targets/omx: use GALLIUM_OMX_LINKER_FLAGS
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 13 Mar 2014 02:28:21 +0000 (02:28 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 31 Mar 2014 11:25:34 +0000 (12:25 +0100)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/Automake.inc
src/gallium/targets/r600/omx/Makefile.am
src/gallium/targets/radeonsi/omx/Makefile.am

index 39475d7dc613f159c34a2de6237e066516d6b2eb..f064a879313d129fa8e3dac5c0315e7f57540cce 100644 (file)
@@ -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 \
index 3776771841e4737b563469b6d6a6017f47f305a3..0aa469ba035c58a53f4446875dd5cfdab60aee54 100644 (file)
@@ -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 \
index 1eaa4b137074c8b43ff45152e97efb18bb5caad4..e85eb11378e104909b63cbba58b8eaceae1b6a50 100644 (file)
@@ -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 \