Resolves: RHEL-148264
bpftool disassembler optionally uses LLVM to improve its capabilities.
Unfortunately, even if llvm-devel is installed, the feature detection of
LLVM doesn't work:
Auto-detecting system features:
... clang-bpf-co-re: [ on ]
... llvm: [ OFF ]
... libcap: [ on ]
... libbfd: [ on ]
The reason is that the feature detection tries to compile a simple C++
program and link it against libLLVM which fails as LDFLAGS contains -pie
while CXXFLAGS does not contain -fpie.
Fix this by setting EXTRA_CXXFLAGS from the bpftool build.
Signed-off-by: Viktor Malik <vmalik@redhat.com>
Resolves: RHEL-109000
There are situations when the kernel tarball dist is different from the
package dist, e.g. when building via CentOS Stream during the exception
phase (c10s will use .el10 while RHEL will use .el10_Y). OpenScanHub may
sometimes use .el10_Y, too.
Signed-off-by: Viktor Malik <vmalik@redhat.com>
Resolves: RHEL-91171
Note that this update is only necessary to facilitate RISC-V builds so
we are likely not doing an official build.
Signed-off-by: Viktor Malik <vmalik@redhat.com>