While trying to build lcd4linux, rev. 1203
(
https://ssl.bulix.org/svn/lcd4linux/trunk), I encountered undefined
reference to log2l issue. I'm using uclibc-ng 1.0.6, and I see only
these two math-related configs:
DO_C99_MATH=y
# DO_XSI_MATH is not set
Obviously, DO_XSI_MATH is unrelated here, since it stands for Bessel functions.
Clearly, uClibc-ng (at least, as of 1.0.6) is missing log2l (and
probably other long double math functions). As a workaround, I added
-Dlog2l=log2 cflag, and lcd4linux builds fine now, but I was wondering
whether it is possible to have these functions in uClibc-ng.
It rather depends on the availabilty on another symbol:
config UCLIBC_HAS_LONG_DOUBLE_MATH
bool "Enable long double support"
depends on DO_C99_MATH
depends on TARGET_aarch64 || TARGET_alpha || TARGET_i386 ||
TARGET_ia64 || TARGET_m68k || TARGET_powerpc || TARGET_s390 ||
TARGET_sparc || TARGET_tile || TARGET_x86_64
So you need UCLIBC_HAS_LONG_DOUBLE_MATH. But it is not available
for all supported architectures. Patches welcome :)
best regards
Waldemar