summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/vdpau
diff options
context:
space:
mode:
authorJonathan Gray <jsg@jsg.id.au>2014-09-02 02:08:00 +1000
committerEmil Velikov <emil.l.velikov@gmail.com>2014-09-05 14:20:42 +0100
commit635477dc4b9579dac2fc0fb332dcf2e0e48dd418 (patch)
treee16a056efb55d49e7786ada9846fe09d1dddad1f /src/gallium/targets/vdpau
parentd3dee3df97e05f86792a1591a023f66ca195fb1c (diff)
downloadexternal_mesa3d-635477dc4b9579dac2fc0fb332dcf2e0e48dd418.zip
external_mesa3d-635477dc4b9579dac2fc0fb332dcf2e0e48dd418.tar.gz
external_mesa3d-635477dc4b9579dac2fc0fb332dcf2e0e48dd418.tar.bz2
automake: check if the linker supports --dynamic-list
As older versions of gnu ld did not support --dynamic-list check to see if it is supported before using it. Non gnu linkers such the apple one likely lack this option as well. Fixes the build on OpenBSD which has binutils 2.15 and 2.17. The --dynamic-list option seems to been have introduced sometime after binutils 2.17 was released as it is present in 2.18. Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Jonathan Gray <jsg@jsg.id.au> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'src/gallium/targets/vdpau')
-rw-r--r--src/gallium/targets/vdpau/Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/targets/vdpau/Makefile.am b/src/gallium/targets/vdpau/Makefile.am
index 6c92cd8..440cf22 100644
--- a/src/gallium/targets/vdpau/Makefile.am
+++ b/src/gallium/targets/vdpau/Makefile.am
@@ -15,7 +15,6 @@ libvdpau_gallium_la_LDFLAGS = \
-module \
-no-undefined \
-version-number $(VDPAU_MAJOR):$(VDPAU_MINOR) \
- -Wl,--dynamic-list=$(top_srcdir)/src/gallium/targets/dri-vdpau.dyn \
$(GC_SECTIONS) \
$(LD_NO_UNDEFINED)
@@ -24,6 +23,11 @@ libvdpau_gallium_la_LDFLAGS += \
-Wl,--version-script=$(top_srcdir)/src/gallium/targets/vdpau/vdpau.sym
endif # HAVE_LD_VERSION_SCRIPT
+if HAVE_LD_DYNAMIC_LIST
+libvdpau_gallium_la_LDFLAGS += \
+ -Wl,--dynamic-list=$(top_srcdir)/src/gallium/targets/dri-vdpau.dyn
+endif # HAVE_LD_DYNAMIC_LIST
+
libvdpau_gallium_la_LIBADD = \
$(top_builddir)/src/gallium/state_trackers/vdpau/libvdpautracker.la \
$(top_builddir)/src/gallium/auxiliary/libgallium.la \