Don't use getPackageLinkOpts on iOS; fixes #7720.

On iOS, binaries are really static libraries, so we don't want to use
flags like -lm when linking them.