The -fno-math-errno flag shouldn't impact libraries since it's mostly intended for permitting the compiler to generate sqrt() instructions.