changeset 298:b69f328cdfe6

- simpler ./configure check if freebsd/mips platform is hard-float
author Tassilo Philipp
date Thu, 17 May 2018 16:55:24 +0200
parents dd1d0b0fd896
children 1fa2427dae49
files configure
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Wed May 16 18:27:59 2018 +0200
+++ b/configure	Thu May 17 16:55:24 2018 +0200
@@ -91,7 +91,7 @@
     ;;
   FreeBSD)
     if [ -z "${CFLAGS}" ]; then
-      if [ `uname -m` = "mips" ] && ! echo 'int main(){return (float)(int)&main;}' | cc -x c -o mips_float_test - >/dev/null 2>&1; then
+      if [ `uname -m` = "mips" ] && make -V MACHINE_ARCH | grep 'hf$' >/dev/null 2>&1; then
         # FBSD12-CURRENT/mipshf needs to be told explicitly to use -mhard_float (at least as of may 2018)
         printf "CFLAGS=-fPIC -mhard-float\n" >>$C
       else