I've made little more investigations on what libraries are actually used.

Here is updated list of unused libraries.

libbz2.dll
libgio-2.0-0.dll
libgmodule-2.0-0.dll
libgobject-2.0-0.dll
libltdl-7.dll
libpcrecpp-0.dll
libpulse-mainloop-glib-0.dll
libpulse-simple-0.dll
libpulsecore-1.0.dll
libzzipmmapped-0-13.dll
postproc-51.dll

Windows eagerly loads dependencies so I simply run MPD and tried to delete everything that is deletable.

As you can see libbz2 is also unused.
Looks like it statically linked along the road.

If it is supposed to be linked dynamically fix should done somewhere else.

I've made a separate patch because of that.

P.S. It would be useful to have a personal "release utils" repo for simple patch delivery.

--
Denis

diff --git a/scripts/mpd-build.sh b/scripts/mpd-build.sh
index 3149a1e..c3abe4c 100755
--- a/scripts/mpd-build.sh
+++ b/scripts/mpd-build.sh
@@ -74,6 +74,15 @@ cp -av  "${BINDIR}"/*.dll \
 
 ## Remove unnecessary libraries
 rm "${DISTDIR}"/avdevice*
+rm "${DISTDIR}"/postproc*
+rm "${DISTDIR}"/libgio-*.dll
+rm "${DISTDIR}"/libgmodule-*.dll
+rm "${DISTDIR}"/libgobject-*.dll
+rm "${DISTDIR}"/libltdl-*.dll
+rm "${DISTDIR}"/libpcrecpp-*.dll
+rm "${DISTDIR}"/libpulse-mainloop-glib-*.dll
+rm "${DISTDIR}"/libpulse-simple-*.dll
+rm "${DISTDIR}"/libpulsecore-*.dll
 rm "${DISTDIR}"/libspeexdsp-?.dll
 rm "${DISTDIR}"/libcharset-?.dll
 rm "${DISTDIR}"/libasprintf-?.dll
diff --git a/scripts/mpd-build.sh b/scripts/mpd-build.sh
index c3abe4c..474a936 100755
--- a/scripts/mpd-build.sh
+++ b/scripts/mpd-build.sh
@@ -75,6 +75,7 @@ cp -av  "${BINDIR}"/*.dll \
 ## Remove unnecessary libraries
 rm "${DISTDIR}"/avdevice*
 rm "${DISTDIR}"/postproc*
+rm "${DISTDIR}"/libbz2.dll
 rm "${DISTDIR}"/libgio-*.dll
 rm "${DISTDIR}"/libgmodule-*.dll
 rm "${DISTDIR}"/libgobject-*.dll
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Ciosco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to