Mercurial > pub > dyncall > dyncall
comparison configure @ 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 | e6bd998b0308 |
children | d2c8ea3ef2ed |
comparison
equal
deleted
inserted
replaced
297:dd1d0b0fd896 | 298:b69f328cdfe6 |
---|---|
89 fi | 89 fi |
90 printf "LDLIBS=-lm\n" >>$C | 90 printf "LDLIBS=-lm\n" >>$C |
91 ;; | 91 ;; |
92 FreeBSD) | 92 FreeBSD) |
93 if [ -z "${CFLAGS}" ]; then | 93 if [ -z "${CFLAGS}" ]; then |
94 if [ `uname -m` = "mips" ] && ! echo 'int main(){return (float)(int)&main;}' | cc -x c -o mips_float_test - >/dev/null 2>&1; then | 94 if [ `uname -m` = "mips" ] && make -V MACHINE_ARCH | grep 'hf$' >/dev/null 2>&1; then |
95 # FBSD12-CURRENT/mipshf needs to be told explicitly to use -mhard_float (at least as of may 2018) | 95 # FBSD12-CURRENT/mipshf needs to be told explicitly to use -mhard_float (at least as of may 2018) |
96 printf "CFLAGS=-fPIC -mhard-float\n" >>$C | 96 printf "CFLAGS=-fPIC -mhard-float\n" >>$C |
97 else | 97 else |
98 printf "CFLAGS=-fPIC\n" >>$C | 98 printf "CFLAGS=-fPIC\n" >>$C |
99 fi | 99 fi |