targets/vdpau: correctly generate the symlinks
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 23 Jun 2014 14:13:47 +0000 (15:13 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 23 Jun 2014 14:53:26 +0000 (15:53 +0100)
Reported-by: David Heidelberger <david.heidelberger@ixit.cz>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/targets/vdpau/Makefile.am

index a257db87c28a244e5a6b4a70cc82c15f25f5d0d8..9920bd9b4e1493e7e8a4663aa153879050adbc52 100644 (file)
@@ -131,13 +131,13 @@ install-data-hook:
                j=libvdpau_gallium.$(LIB_EXT);                          \
                k=libvdpau_$${i}.$(LIB_EXT);                            \
                l=$${k}.$(VDPAU_MAJOR).$(VDPAU_MINOR).0;                \
-               ln -f $${dest_dir}/$${j}.$(VDPAU_MAJOR).$(VDPAU_MINOR).0 \
-                     $${dest_dir}/$${l}                                \
+               ln -f .libs/$${j}.$(VDPAU_MAJOR).$(VDPAU_MINOR).0       \
+                     $${dest_dir}/$${l};                               \
                ln -sf $${l}                                            \
-                      $${link_dir}/$${k}.$(VDPAU_MAJOR).$(VDPAU_MINOR); \
+                      $${dest_dir}/$${k}.$(VDPAU_MAJOR).$(VDPAU_MINOR); \
                ln -sf $${l}                                            \
-                      $${link_dir}/$${k}.$(VDPAU_MAJOR);               \
+                      $${dest_dir}/$${k}.$(VDPAU_MAJOR);               \
                ln -sf $${l}                                            \
-                      $${link_dir}/$${k};                              \
+                      $${dest_dir}/$${k};                              \
        done;                                                           \
        $(RM) -f $$dest_dir/libvdpau_gallium.*