I'm building an app on Raspebian (Rpi3b+) using the gcc-arm-none-eabi
toolchain (which I installed via sudo apt-get install gcc-arm-none-eabi
).
I successfully compiled my sources, but the linking step:
arm-none-eabi-ld modes.c.o turing.c.o light.c.o dark.c.o pix.c.o --relocatable -o tlrcextractortest -lm
fails with:
arm-none-eabi-ld: cannot find -lm
What could be wrong? Which package do I need to install to get the missing lib?