Contrib: fix linking of mpg123 on Windows
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 27 Sep 2017 08:14:30 +0000 (10:14 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 27 Sep 2017 08:14:30 +0000 (10:14 +0200)
contrib/src/mpg123/mpg123-win32.patch [new file with mode: 0644]
contrib/src/mpg123/rules.mak

diff --git a/contrib/src/mpg123/mpg123-win32.patch b/contrib/src/mpg123/mpg123-win32.patch
new file mode 100644 (file)
index 0000000..dd39b3e
--- /dev/null
@@ -0,0 +1,9 @@
+--- mpg123/libmpg123.pc.in     2017-09-27 09:52:17.532298223 +0200
++++ mpg123/libmpg123.pc.in.new 2017-09-27 09:53:18.236300149 +0200
+@@ -7,5 +7,5 @@
+ Description: An optimised MPEG Audio decoder
+ Requires: 
+ Version: @PACKAGE_VERSION@
+-Libs: -L${libdir} -lmpg123 @LIBM@
++Libs: -L${libdir} -lmpg123 @LIBM@ -lshlwapi
+ Cflags: -I${includedir} 
index cfd9a9c..46850d1 100644 (file)
@@ -38,6 +38,9 @@ mpg123: mpg123-$(MPG123_VERSION).tar.bz2 .sum-mpg123
 ifdef HAVE_ANDROID
        $(APPLY) $(SRC)/mpg123/mpg123_android_off_t.patch
 endif
+ifdef HAVE_WIN32
+       $(APPLY) $(SRC)/mpg123/mpg123-win32.patch
+endif
 ifdef HAVE_WINSTORE
        $(APPLY) $(SRC)/mpg123/winstore.patch
 endif