shithub: sox

Download patch

ref: fbe2498c5637b48a6b28d1038f5722a6072f504b
parent: 4c03d8d678c49d604ccc3f57f30ed25a7ba6d69e
author: Mans Rullgard <mans@mansr.com>
date: Sun Aug 9 09:55:23 EDT 2020

build: drop -lwsock32 from FLAC_LIBS on Windows

The need for linking with wsock32 is long gone from libflac.

--- a/configure.ac
+++ b/configure.ac
@@ -484,11 +484,6 @@
 #  support for OGG and if OGG libraries are found on this
 #  system then its highly likely to be compiled into FLAC
 #  and will require these at link time.
-case $target in
-  *mingw*)
-  FLAC_LIBS="-lwsock32"
-  ;;
-esac
 AC_OPTIONAL_FORMAT(flac, FLAC, [AC_CHECK_HEADER(FLAC/all.h, [AC_CHECK_DECL(FLAC_API_VERSION_CURRENT, [AC_CHECK_LIB(FLAC, FLAC__stream_encoder_new, FLAC_LIBS="-lFLAC $FLAC_LIBS $OGG_VORBIS_LIBS",using_flac=no, $FLAC_LIBS $OGG_VORBIS_LIBS)], using_flac=no, [#include <FLAC/all.h>])], using_flac=no)], using_flac=no)