clang does not accept the -static-libgcc flag and apparently -static-libstdc++ is accepted but has no effect.