speech-tools: is __isnanf, use portable isnan (c99)

This commit is contained in:
Will Dietz 2018-03-15 01:23:22 -05:00
parent ce86490530
commit 92bd681de1

View File

@ -14,6 +14,10 @@ stdenv.mkDerivation rec {
preConfigure = ''
sed -e s@/usr/bin/@@g -i $( grep -rl '/usr/bin/' . )
sed -re 's@/bin/(rm|printf|uname)@\1@g' -i $( grep -rl '/bin/' . )
# c99 makes isnan valid for float and double
substituteInPlace include/EST_math.h \
--replace '__isnanf(X)' 'isnan(X)'
'';
installPhase = ''