build-system/gnu: Check whether the cross-libc has a "static" output.