Skip to contentSkip to conversation

Always link to libm

PATCH In review Alexander Stein 2 participants 2 messages May 12, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Always link to libm

From: Alexander Stein <[email protected]>

Starting with commit 9b6df1cf64ea7ccb329b4922d138c1f36ace00c0
control: add ASCII parsers from amixer
ctlparse.c uses ceil() and so libm is need unrelated to soft- or hardfloat.

---
 configure.in |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
configure.in +1 -4
index 7ee0ccc..687e5eb 100644
@@ -228,10 +228,7 @@ else
   AC_MSG_RESULT(no)
 fi
 
-ALSA_DEPLIBS=""
-if test "$softfloat" != "yes"; then
-  ALSA_DEPLIBS="-lm"
-fi
+ALSA_DEPLIBS="-lm"
 
 dnl Check for libdl
 AC_MSG_CHECKING(for libdl)
Signature · 1 line
1.7.3.4
#1 lore raw
Quoted 3 lines · Alexander Stein

Starting with commit 9b6df1cf64ea7ccb329b4922d138c1f36ace00c0
control: add ASCII parsers from amixer
ctlparse.c uses ceil() and so libm is need unrelated to soft- or hardfloat.

The softfloat option is intended to avoid floating-point code.

The root cause of this problem is that ctlparse.c uses floatin-point calculations unconditionally; it should be rewritten to use integer math, or to drop the float parsing if compiled with softfloat.

Regards,
Clemens