nmeum / android-tools

Unoffical CMake-based build system for android command line utilities
Apache License 2.0
177 stars 51 forks source link

Fix compilation with GCC 12.1 #61

Closed nmeum closed 2 years ago

nmeum commented 2 years ago

CC: @FireBurn

Fixes #60

nmeum commented 2 years ago

Looks like boringssl will need some patches as well or needs to be compiled without -Werror.

nmeum commented 2 years ago

The only remaining problem now seems to be that CMAKE_C_FLAGS and CMAKE_CXX_FLAGS set in vendor/boringssl/CMakeLists.txt are overwritten with the values set in vendor/CMakeLists.txt which causes a boringssl compile error on Arch Linux with clang/clang++. Not entirely sure why this is happening as it works on Alpine locally with the same CMake version.