Reference: https://stackoverflow.com/questions/3801011/ld-library-not-found-for-lcrt0-o-on-osx-10-6-with-gcc-clang-static-flag The build is successful if I remove "-static" from the static-test Makefile line.