Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use unavailable C99 long double math functions
uClibc variants do not provide the C99 long double math functions like ceill, powl, etc.. For future compatibility use check_symbol_exists() to check whether these functions are available, and keep the result in HAVE_MATH_C99_LONG_DOUBLE. Use that instead of the fragile Cygwin version check in triodef.h. Fixes build failures under uClibc(-ng) like: ../../libwinpr/utils/libwinpr-utils.so.0.1.0: undefined reference to `powl' ../../libwinpr/utils/libwinpr-utils.so.0.1.0: undefined reference to `fmodl' ../../libwinpr/utils/libwinpr-utils.so.0.1.0: undefined reference to `ceill' ../../libwinpr/utils/libwinpr-utils.so.0.1.0: undefined reference to `log10l' ../../libwinpr/utils/libwinpr-utils.so.0.1.0: undefined reference to `floorl' collect2: error: ld returned 1 exit status Signed-off-by: Baruch Siach <baruch@tkos.co.il>
- Loading branch information
1 parent
dd2e7f3
commit 414663c
Showing
3 changed files
with
10 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters