Skip to content

Commit b35c295

Browse files
committed
autotools: fix linking for building speexdec with mingw
Reported by Roger Pack.
1 parent 9172c7e commit b35c295

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,12 @@ AC_ARG_ENABLE(blackfin-asm, [ --enable-blackfin-asm Make use of Blackfin asse
194194
[if test "$enableval" = yes; then
195195
AC_DEFINE([BFIN_ASM], , [Make use of Blackfin assembly optimizations])
196196
fi])
197+
WINMM_LIBS=""
197198
case $host_os in
198199
uclinux) LDFLAGS="-Wl,-elf2flt=-s100000 $LDFLAGS";;
200+
*mingw*) WINMM_LIBS="-lwinmm";;
199201
esac
202+
AC_SUBST(WINMM_LIBS)
200203

201204
AC_ARG_ENABLE(fixed-point-debug, [ --enable-fixed-point-debug Debug fixed-point implementation],
202205
[if test "$enableval" = yes; then

src/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ speexenc_LDADD = $(top_builddir)/libspeex/libspeex.la \
2424

2525
speexdec_SOURCES = speexdec.c wav_io.c
2626
speexdec_LDADD = $(top_builddir)/libspeex/libspeex.la \
27-
$(OGG_LIBS) @FFT_LIBS@
27+
$(OGG_LIBS) @WINMM_LIBS@ @FFT_LIBS@
2828

0 commit comments

Comments
 (0)