redhat: Do not build libperf with cross builds
JIRA: https://issues.redhat.com/browse/RHELMISC-2923
When executing one of the cross build targets, for example,
dist-cross-aarch64-build, the compile fails with
cc1: error: unrecognized command-line option '-mbranch-protection=standard'
cc1: error: unrecognized command-line option '-mbranch-protection=standard'
These errors are from building libperf which, similar to perf, is base
architecture specific.
Do not build libperf in cross builds.
Signed-off-by: Prarit Bhargava prarit@redhat.com
Edited by Prarit Bhargava