diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-03-20 11:31:54 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-05-21 13:44:22 -0300 |
commit | 1f09aae36aa185b8b1100dfa6b776442279bf580 (patch) | |
tree | 39e35d67a10c17d861dad52c5a1cfae39285bdc9 /sysdeps/i386/fpu | |
parent | 0b716305dfb48c2d13ed4f7d06c082b90c1d226f (diff) | |
download | glibc-1f09aae36aa185b8b1100dfa6b776442279bf580.tar.gz glibc-1f09aae36aa185b8b1100dfa6b776442279bf580.tar.xz glibc-1f09aae36aa185b8b1100dfa6b776442279bf580.zip |
math: Fix i386 and m68k exp10 on static build (BZ 31775)
The commit 08ddd26814 removed the static exp10 on i386 and m68k with an empty w_exp10.c (required for the ABIs that uses the newly implementation). This patch fixes by adding the required symbols on the arch-specific w_exp{f}_compat.c implementation. Checked on i686-linux-gnu and with a build for m68k-linux-gnu. Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'sysdeps/i386/fpu')
-rw-r--r-- | sysdeps/i386/fpu/w_exp10_compat.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sysdeps/i386/fpu/w_exp10_compat.c b/sysdeps/i386/fpu/w_exp10_compat.c index b53455386e..49a0e03385 100644 --- a/sysdeps/i386/fpu/w_exp10_compat.c +++ b/sysdeps/i386/fpu/w_exp10_compat.c @@ -1,3 +1,8 @@ /* i386 provides an optimized __ieee754_exp10. */ -#define NO_COMPAT_NEEDED 1 -#include <math/w_exp10_compat.c> +#ifdef SHARED +# define NO_COMPAT_NEEDED 1 +# include <math/w_exp10_compat.c> +#else +# include <math-type-macros-double.h> +# include <w_exp10_template.c> +#endif |