# HG changeset patch # User Tassilo Philipp # Date 1526481339 -7200 # Node ID e6bd998b03087550692f305b3aaf1ecf357911ea # Parent a6963fd4a8cce88a8793dccd46a56601567e4f02 - FBSD12-CURRENT/mipshf needs to be told explicitly to use -mhard_float (at least as of may 2018) diff -r a6963fd4a8cc -r e6bd998b0308 ChangeLog --- a/ChangeLog Tue May 08 00:37:28 2018 +0200 +++ b/ChangeLog Wed May 16 16:35:39 2018 +0200 @@ -1,6 +1,8 @@ This file lists bigger/noteworthy changes, only... Version 1.1 (upcoming) +buildsys: + o default ./configure: FreeBSD/mips*hf needed -mhard-float compiler flag set explicitly Version 1.0 (2018/04/23) dyncall: diff -r a6963fd4a8cc -r e6bd998b0308 configure --- a/configure Tue May 08 00:37:28 2018 +0200 +++ b/configure Wed May 16 16:35:39 2018 +0200 @@ -91,7 +91,12 @@ ;; FreeBSD) if [ -z "${CFLAGS}" ]; then - printf "CFLAGS=-fPIC\n" >>$C + if [ `uname -m` = "mips" ] && ! echo 'int main(){return (float)(int)&main;}' | cc -x c -o mips_float_test - >/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 + printf "CFLAGS=-fPIC\n" >>$C + fi fi printf "LDLIBS=-lm\n" >>$C printf "RM=rm -f\n" >>$C