From: Prarit Bhargava <pra...@redhat.com>

redhat: Do not build libperf with cross builds

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 <pra...@redhat.com>

diff --git a/redhat/Makefile.cross b/redhat/Makefile.cross
index blahblah..blahblah 100644
--- a/redhat/Makefile.cross
+++ b/redhat/Makefile.cross
@@ -1,6 +1,6 @@
 CROSS_RPMFLAGS = $(RPMBUILD) --define "_sourcedir $(SOURCES)" --define 
"_builddir $(RPM)/BUILD" --define "_srcrpmdir $(RPM)/SRPMS" --define "_rpmdir 
$(RPM)/RPMS" --define "_specdir $(RPM)/SPECS" --define "dist $(DIST)"
 
-CROSS_DISABLED_SUBPACKAGES=--without bpftool --without perf --without tools
+CROSS_DISABLED_SUBPACKAGES=--without bpftool --without perf --without tools 
--without libperf
 
 CROSS_PACKAGE_LIST = \
    cross-binutils-common cross-gcc-common diffstat \

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2949
--
_______________________________________________
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to