targets/xvmc: move linker flags to Automake.inc
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 9 Nov 2013 22:54:58 +0000 (22:54 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 16 Nov 2013 16:31:03 +0000 (16:31 +0000)
Minimise duplication and sources of error
(eg nouveau was missing shared and no-undefined)

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/Automake.inc
src/gallium/targets/r600/xvmc/Makefile.am
src/gallium/targets/xvmc-nouveau/Makefile.am

index f67b2951f42e95105ffa505f60eb79b4a5d08e89..f33bc37c8c6d514a4c8b23965af6db192c1de456 100644 (file)
@@ -44,6 +44,13 @@ GALLIUM_VDPAU_LINKER_FLAGS = \
        -shared \
        -no-undefined
 
+# TODO: add -export-symbols-regex
+GALLIUM_XVMC_LINKER_FLAGS = \
+       -module \
+       -version-number $(XVMC_MAJOR):$(XVMC_MINOR) \
+       -shared \
+       -no-undefined
+
 GALLIUM_VDPAU_LIB_DEPS = \
        $(top_builddir)/src/gallium/auxiliary/libgallium.la \
        $(top_builddir)/src/gallium/state_trackers/vdpau/libvdpautracker.la \
index 367f597dd84c8d5db18271ce8fcfc7bf30775ce5..1a75f52738030ebe6ec69066217312b7d7edcb6d 100644 (file)
@@ -33,10 +33,7 @@ libXvMCr600_la_SOURCES = \
        $(top_srcdir)/src/gallium/auxiliary/vl/vl_winsys_dri.c
 
 libXvMCr600_la_LDFLAGS = \
-       -module \
-       -version-number $(XVMC_MAJOR):$(XVMC_MINOR) \
-       -shared \
-       -no-undefined
+       $(GALLIUM_XVMC_LINKER_FLAGS)
 
 libXvMCr600_la_LIBADD = \
        $(top_builddir)/src/gallium/auxiliary/libgallium.la \
index 37013f1eb113009131caab721d623cbd5a9b31cc..4328c055542c74c88bb378915303ba6bb1c6dc46 100644 (file)
@@ -34,10 +34,7 @@ libXvMCnouveau_la_SOURCES = \
        $(top_srcdir)/src/gallium/auxiliary/vl/vl_winsys_dri.c
 
 libXvMCnouveau_la_LDFLAGS = \
-       -module \
-       -version-number $(XVMC_MAJOR):$(XVMC_MINOR)
-       -shared \
-       -no-undefined
+       $(GALLIUM_XVMC_LINKER_FLAGS)
 
 libXvMCnouveau_la_LIBADD = \
        $(top_builddir)/src/gallium/auxiliary/libgallium.la \