Cross-Compiling for arm32

Absolute pain

Basic Compilation

Install GCC multilibarrow-up-right and the arm32 cross-platform toolchainarrow-up-right

sudo apt-get install gcc-multilib gcc-arm-linux-gnueabihf

Add the CC variable to the Makefilearrow-up-right for gcc:

CC=arm-linux-gnueabihf-gcc

Compiling Libraries (seccomp)

Extra step required. We have to add the architecturearrow-up-right, 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?