shithub: sox

Download patch

ref: 30dddcc83b893847b5c2be6ae604337c4014c0eb
parent: e37c58bcf1e9ebb89d2f622809f6936742526b7b
author: robs <robs>
date: Sun Jan 27 06:24:32 EST 2008

fix for ext. lib detection in some environments

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -59,6 +59,9 @@
 test_big_endian(WORDS_BIGENDIAN)
 
 optional(NEED_LIBM math.h m pow "")
+if(NEED_LIBM)
+  set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} -lm)
+endif(NEED_LIBM)
 optional(EXTERNAL_GSM gsm/gsm.h gsm gsm_create "")
 optional(HAVE_ALSA alsa/asoundlib.h asound snd_pcm_open alsa)
 optional(HAVE_AMRNB amrnb/sp_dec.h amrnb Decoder_Interface_init amr-nb)