Use check_cflags for -mdynamic-no-pic so third-party compilers will work on Darwin.