Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libbpf: add v1.4.6, add cross-compilation support #25931

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

valgur
Copy link
Contributor

@valgur valgur commented Nov 13, 2024

Summary

Changes to recipe: lib/[version]

Motivation

Details

Switched from AutotoolsToolchain to GnuToolchain for tc.extra_env.vars(self)["CC"] info and better cross-compilation support overall. It might be possible to make it work with AutotoolsToolchain as well though.

Successfully builds with

[settings]
arch=armv8
build_type=Release
compiler=gcc
compiler.cppstd=gnu20
compiler.libcxx=libstdc++11
compiler.version=14
os=Linux

[conf]
tools.build:compiler_executables={'c': 'aarch64-linux-gnu-gcc-14', 'cpp': 'aarch64-linux-gnu-g++-14', 'strip': 'aarch64-linux-gnu-strip'}
tools.cmake.cmaketoolchain:user_toolchain=['/home/martin/.conan2/armv8_toolchain.cmake']
set(CMAKE_FIND_ROOT_PATH /usr/aarch64-linux-gnu) 
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

@valgur valgur mentioned this pull request Nov 13, 2024
3 tasks
@perseoGI perseoGI self-assigned this Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants