I'm trying to build an Arm project using the arm-gcc cross compiler along with the libraries in the newlib package. It builds just fine, but when it comes to linking, I get the following error:
Code:
/usr/bin/arm-none-eabi-ld: cannot find -lg_nano
/usr/bin/arm-none-eabi-ld: cannot find -lstdc++_nano
/usr/bin/arm-none-eabi-ld: cannot find -lc_nano
/usr/bin/arm-none-eabi-ld: cannot find -lc_nano
I am using the following linker flag:
This is to use the libraries optimized to be smaller and lighter for embedded devices. If I remove that particular flag, it builds just fine.
Both arm-gcc and newlib are from Slackbuilds.org, and the arm-gcc Slackbuild script has been altered to add support for the c++ language.
Is newlib compiled without nano support? If that's the case, why is the nano.specs file available in the package? Also, what would I need to change in the Slackbuild in order for newlib to be built with support?