xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-extended/groff/files/0001-support-musl.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 695965c27be74acb5968f19d51af86065c4b71a9 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Mon, 13 May 2019 09:48:14 +0800
4Subject: [PATCH] support musl
5
6...
7|./lib/math.h:2877:1: error: 'int signbit(float)' conflicts with a previous declaration
8| _GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit)
9| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10|In file included from recipe-sysroot/usr/include/c++/8.3.0/math.h:36,
11|                 from ./lib/math.h:27,
12|                 from ./src/include/driver.h:27,
13|                 from src/devices/grodvi/dvi.cpp:20:
14|recipe-sysroot/usr/include/c++/8.3.0/cmath:661:3: note: previous declaration 'constexpr bool std::signbit(float)'
15|   signbit(float __x)
16|   ^~~~~~~
17...
18
19Upstream-Status: Backport [http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commit;h=453ff940449bbbde9ec00f0bbf82a359c5598fc7]
20
21Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
22---
23 gnulib_m4/signbit.m4 | 2 ++
24 1 file changed, 2 insertions(+)
25
26diff --git a/gnulib_m4/signbit.m4 b/gnulib_m4/signbit.m4
27index 9e7884d..8b9c70c 100644
28--- a/gnulib_m4/signbit.m4
29+++ b/gnulib_m4/signbit.m4
30@@ -31,6 +31,8 @@ AC_DEFUN([gl_SIGNBIT],
31         [case "$host_os" in
32                           # Guess yes on glibc systems.
33            *-gnu* | gnu*) gl_cv_func_signbit="guessing yes" ;;
34+                          # Guess yes on musl systems.
35+           *-musl*)       gl_cv_func_signbit="guessing yes" ;;
36                           # Guess yes on native Windows.
37            mingw*)        gl_cv_func_signbit="guessing yes" ;;
38                           # If we don't know, assume the worst.
39--
402.7.4
41
42