Actually, it seems like cc is already adding that option when it invokes ld depending on the value of the environment values of MAC_OS_X_VERSION_MIN_REQUIRED and MACOSX_DEPLOYMENT_TARGET.
Well, maybe, I misunderstood the docs, and MAC_OS_X_VERSION_MIN_REQUIRED is set according to MACOSX_DEPLOYMENT_TARGET; it doesn't have any effect by itself.