libretroshare/misc
jolavillette 7bbeb8bd69 Android: tell libtiff where libm is
tiff cmake/FindCMath.cmake probes pow(3) twice, first with no extra
library then with the result of find_library(NAMES m). On Android pow is
in libm, and the NDK keeps libm.so under the API level directory of the
sysroot, sysroot/usr/lib/<triple>/<api>/, which andro_cmake does not add
to CMAKE_LIBRARY_PATH. find_library returns NOTFOUND, the second probe
links exactly like the first one and both fail with

  ld.lld: error: undefined symbol: pow

so configure aborts on

  Could NOT find CMath (missing: CMath_pow)

taking build_cimg and build_phash down with it.

Pass CMath_LIBRARY explicitly rather than adding the API level directory
to the search path of every dependency, which would change how the other
ten already working ones resolve their libraries.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-17 09:39:38 +02:00
..
Android Android: tell libtiff where libm is 2026-08-17 09:39:38 +02:00