I am trying to replace the arm-elf-none-eabi toolchain in Maple IDE under Macos X
I have a recent Yagarto toolchain and have replaced the original with this in the
application package contents. Building a sketch now compiles all the files but fails on linking with the error:
Linking...
arm-none-eabi-g++: error: unrecognized command line option '--print-gc-sections'
arm-none-eabi-g++: error: unrecognized command line option '--march=armv7-m'
This seems to be because -Xlinker flag in ArmCompiler.java line 243 only passes one argument on to the linker, the --gc-sections, the following two flags are not sent to the linker but are passed to g++ that doesnt recognise them.
As far as I can see a patch for the same problem in the Makefile of libmaple has been submitted https://github.com/leaflabs/libmaple/pull/39
/Magnus