Enable JNI build on Mac host (#30207)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/30207
This should work now that we're not using gold-specific linker flags.
Test Plan: CI
Differential Revision: D18653521
Pulled By: dreiss
fbshipit-source-id: 31c3cdbefc37b87bfb4140ffbac781131fe72ab3