Why is -lm before -limf here?
https://git.ligo.org/lscsoft/gstlal/blob/master/gstlal-inspiral/share/O3/optimized/Makefile.ligosoftware_icc_all#L192
I think that effectively disables -limf