Cross-compiling MariaDB
Instructions for cross-compiling MariaDB for different architectures, including using Buildroot and CMake toolchain files.
Buildroot
Details
SET(STACK_DIRECTION -1)
SET(HAVE_IB_GCC_ATOMIC_BUILTINS 1)$ mkdir host
$ cd host
$ cmake ..
$ make import_executables
$ cd ..$ mkdir target
$ cd target
$ cmake .. -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain/file.cmake -DIMPORT_EXECUTABLES=../host/import_executables.cmake
$ makeLast updated
Was this helpful?

