[alsa-devel] [PATCH] Always link to libm

Clemens Ladisch clemens at ladisch.de
Thu May 12 16:34:28 CEST 2011

Alexander Stein wrote:
> 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.


More information about the Alsa-devel mailing list