Shouldn't this kind of thing be called from the specific machine *.mk files? I really think it's only a problem on Linux. Perhaps I'm wrong, but running as root isn't something that generally happens on OSX .