Cross-Compiling for arm32
Absolute pain
Basic Compilation
Install GCC multilib and the arm32 cross-platform toolchain
sudo apt-get install gcc-multilib gcc-arm-linux-gnueabihf
Add the CC
variable to the Makefile
for gcc
:
CC=arm-linux-gnueabihf-gcc
Compiling Libraries (seccomp)
Extra step required. We have to add the architecture, then update to get the packages:
sudo dpkg --add-architecture armhf
sudo apt-get update
Finally, install libseccomp-dev
for armhf
:
sudo apt-get install libseccomp-dev:armhf
Last updated
Was this helpful?