On 02/10/2015 18:28, Sergei Golubchik wrote:
2. I patched storage/innobase/CMakeLists.txt (also attached) in order
to use CHECK_C_SOURCE_COMPILES instead of CHECK_C_SOURCE_RUNS, which fails when cross compiling. I'm not sure we can do that, some of those checks were CHECK_C_SOURCE_COMPILES before and later changed to CHECK_C_SOURCE_RUNS because compiling was not enough (in some corner cases).
I think doing CHECK_C_SOURCE_COMPILES in cross-compiling case and CHECK_C_SOURCE_RUNS otherwise could be a reasonable compromise.
Hi For this I propose the attached patch. Tested in my buildroot environment, works here. In my case I do have atomic intrinsics, but trying to build without them fails (https://mariadb.atlassian.net/browse/MDEV-9002). Cheers and thanks for your help, -- Sylvain Raybaud www.green-communications.fr