forked from facebookexperimental/ExtendedAndroidTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Includes a few tweaks needed to build bpftools with a recent NDK: - Libcxx prebuilts are no longer included in sources/cxx-stl [1], so use the sysroot path instead. - NDK now defaults to android-legacy.toolchain.cmake [2], irrespective of CMake version. With the legacy toolchain some env variables we set such as LDFLAGS aren't used, leading to build errors. Force the use of new toolchain file and switch to CXXFLAGS as opposed to CMAKE_CXX_FLAGS to avoid overriding toolchain defaults [3]. Test: make NDK_PATH=/opt/ndk/android-ndk-r25c bpftools-min [1] https://android-review.googlesource.com/c/platform/ndk/+/2051541 [2] https://android-review.googlesource.com/c/platform/ndk/+/2064269 [3] android/ndk#1693
- Loading branch information
Showing
4 changed files
with
4 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters