Hi
It seems BR2_ARCH_HAS_ATOMICS cannot be used, because for example on 32bits architectures some atomic operations may not be available even though BR2_ARCH_HAS_ATOMICS is set to true. Therefore your solution should be used.
However I just realised that CHECK_C_SOURCE_RUNS should never be invoked by this script in buildroot because it's enclosed in
IF(NOT CMAKE_CROSSCOMPILING)
[...]
ENDIF
(https://github.com/MariaDB/server/blob/10.1/storage/innobase/CMakeLists.txt, line #75).
Is -DCMAKE_CROSSCOMPILING supposed to passed when invoking cmake or is it supposed to be determined automatically?
Hi
It seems BR2_ARCH_HAS_ATOMICS cannot be used, because for example on 32bits architectures some atomic operations may not be available even though BR2_ARCH_HAS_ATOMICS is set to true. Therefore your solution should be used.
However I just realised that CHECK_C_SOURCE_RUNS should never be invoked by this script in buildroot because it's enclosed in
IF(NOT CMAKE_CROSSCOMPILING)
[...]
ENDIF
(https://github.com/MariaDB/server/blob/10.1/storage/innobase/CMakeLists.txt, line #75).
Is -DCMAKE_CROSSCOMPILING supposed to passed when invoking cmake or is it supposed to be determined automatically?