[vlc-commits] contrib: dca: fix ln -s calls on Windows
Steve Lhomme
git at videolan.org
Tue May 22 18:36:42 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue May 22 16:06:42 2018 +0200| [0ecd4f79f8d6d5b35d5bed9cf959af516442c213] | committer: Steve Lhomme
contrib: dca: fix ln -s calls on Windows
autoconf detects what the system should use to link files
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0ecd4f79f8d6d5b35d5bed9cf959af516442c213
---
contrib/src/dca/dca-fix-ln-s-call.patch | 11 +++++++++++
contrib/src/dca/rules.mak | 1 +
2 files changed, 12 insertions(+)
diff --git a/contrib/src/dca/dca-fix-ln-s-call.patch b/contrib/src/dca/dca-fix-ln-s-call.patch
new file mode 100644
index 0000000000..88a8fd9dc4
--- /dev/null
+++ b/contrib/src/dca/dca-fix-ln-s-call.patch
@@ -0,0 +1,11 @@
+--- libdca/libdca/Makefile.am.ln-s 2018-05-15 15:46:09.000000000 +0200
++++ libdca/libdca/Makefile.am 2018-05-22 15:01:28.117715200 +0200
+@@ -12,7 +12,7 @@ pkgconfigdir = $(libdir)/pkgconfig
+ pkgconfig_DATA = libdca.pc libdts.pc
+
+ install-exec-hook:
+- ln -sf "libdca.a" "$(DESTDIR)$(libdir)/libdts.a"
++ $(LN_S)f "libdca.a" "$(DESTDIR)$(libdir)/libdts.a"
+
+ uninstall-hook:
+ unlink "$(DESTDIR)$(libdir)/libdts.a"
diff --git a/contrib/src/dca/rules.mak b/contrib/src/dca/rules.mak
index d469819f72..400bf302a2 100644
--- a/contrib/src/dca/rules.mak
+++ b/contrib/src/dca/rules.mak
@@ -20,6 +20,7 @@ $(TARBALLS)/libdca-$(DCA_VERSION).tar.bz2:
libdca: libdca-$(DCA_VERSION).tar.bz2 .sum-dca
$(UNPACK)
$(UPDATE_AUTOCONFIG) && cd $(UNPACK_DIR)
+ $(APPLY) $(SRC)/dca/dca-fix-ln-s-call.patch
$(call pkg_static,"./libdca/libdca.pc.in")
$(MOVE)
More information about the vlc-commits
mailing list