On Tue, 17 Mar 2026, Jonathan Wakely wrote:
> Actually we do install our own wrapper of fenv.h so we could just do:
> 
> --- a/libstdc++-v3/config/os/bsd/freebsd/os_defines.h
> +++ b/libstdc++-v3/config/os/bsd/freebsd/os_defines.h
> @@ -53,4 +53,8 @@
> // read(2) can return EINVAL for n >= INT_MAX.
> #define _GLIBCXX_MAX_READ_SIZE (__INT_MAX__ - 1)
> 
> +// Ensure that inline functions in <fenv.h> have external linkage.
> +#undef __fenv_static
> +#define __fenv_static
> +
> #endif

I know you have reverted the original patch for now. Still I gave your fix 
above a try and am happy to confirm it restores bootstrap on FreeBSD.

This may come handy for when you push the change again?

Thank you,
Gerald

Reply via email to