On Thu, Apr 26 2018, Markus Hennecke <markus-henne...@markus-hennecke.de> wrote:
> The configure test for mandatory -lm is broken, because the single 
> pow(a,b) call is optimized away. Fix this by forcing the call to be 
> compiled in via return statement.
> This compiles without a change on amd64 and fixes the build on armv7.

Committed, thanks.  This code should be using AC_SEARCH_LIBS instead...

> Index: patches/patch-configure
> ===================================================================
> RCS file: patches/patch-configure
> diff -N patches/patch-configure
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ patches/patch-configure   26 Apr 2018 16:47:22 -0000
> @@ -0,0 +1,16 @@
> +$OpenBSD$
> +
> +Index: configure
> +--- configure.orig
> ++++ configure
> +@@ -4432,9 +4432,8 @@ cat >>conftest.$ac_ext <<_ACEOF
> + int
> + main ()
> + {
> +-pow(a,b)
> ++return pow(a,b)
> +   ;
> +-  return 0;
> + }
> + _ACEOF
> + rm -f conftest.$ac_objext conftest$ac_exeext
>

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to