Skip to content

redhat: Do not build libperf with cross builds

Prarit Bhargava requested to merge prarit/kernel-ark:cross_libperf into os-build

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

Merge request reports