diff --git a/m4/shout.m4 b/m4/shout.m4 index 37cd563..c4f6120 100644 --- a/m4/shout.m4 +++ b/m4/shout.m4 @@ -51,7 +51,8 @@ dnl XXX - Up until and including speex-1.2beta1, '-lm' has been missing from dnl --libs in speex.pc, even though Speex (still) depends on it. This is dnl a problem for Solaris' linker and at least some static archs using dnl GNU ld. '-lm' now comes from the libshout's libvorbis dependency and -dnl is in the wrong place. +dnl is in the wrong place, if libshout was built with Speex support. Just +dnl move libm to the end for now. xt_shout_TEMP="`echo $SHOUT_LIBS | sed -e 's,-lm,,g'`" SHOUT_LIBS="$xt_shout_TEMP -lm"