Darwin/MacOS X also include elements of the C library in
libgcc_s.dylib and libSystem.dylib. While including -lSystem in the
link command seems to be harmless, including -lgcc_s can cause large
links to fail. Neither is necessary because ld automatically
includes them.

The problems are fixed by changing the above lines to:
# Ignore these flags.