summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2016-03-06 17:11:29 -0500
committerRich Felker <dalias@aerifal.cx>2016-03-06 17:11:29 -0500
commit636a4799dd5bf11a1fcd209906c088ed948b821c (patch)
treee4707e39cd7343b136e255acba538e5e06e405b1 /configure
parent5a92dd95c77cee81755f1a441ae0b71e3ae2bcdb (diff)
downloadmusl-636a4799dd5bf11a1fcd209906c088ed948b821c.tar.gz
musl-636a4799dd5bf11a1fcd209906c088ed948b821c.tar.bz2
musl-636a4799dd5bf11a1fcd209906c088ed948b821c.tar.xz
musl-636a4799dd5bf11a1fcd209906c088ed948b821c.zip
make configure check for unsupported (SPE) powerpc hard-float models
the SPE ABI may be compatible with soft-float, but actually making it work requires some additional work, so for now it's best to make sure broken builds don't happen.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index 9c0762c9..213a8254 100755
--- a/configure
+++ b/configure
@@ -622,6 +622,8 @@ trycppif __mips_soft_float "$t" && SUBARCH=${SUBARCH}-sf
fi
if test "$ARCH" = "powerpc" ; then
+trycppif "__NO_FPRS__ && !_SOFT_FLOAT" "$t" && fail \
+ "$0: error: compiler's floating point configuration is unsupported"
trycppif _SOFT_FLOAT "$t" && SUBARCH=${SUBARCH}-sf
fi