Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some build rule fixes (fix use of libstdc++ and printf) #111

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Link using g++
This ensures some C++-specific symbols, such as
`std::_throw_bad_function_call` and probably others, are automatically
included in the link, preventing linker errors when using some standard
c++ library bits (such as `std::function`).

This follows the same change done for SAMD:

    arduino/ArduinoCore-samd#276
matthijskooijman committed Sep 29, 2020
commit 482837bf961ef42c6c2d68f8f706e0ab013b439d
2 changes: 1 addition & 1 deletion platform.txt
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ compiler.warning_flags.all=-Wall -Wextra
compiler.path={runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path}/bin/
compiler.c.cmd=arm-none-eabi-gcc
compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
compiler.c.elf.cmd=arm-none-eabi-gcc
compiler.c.elf.cmd=arm-none-eabi-g++
compiler.c.elf.flags=-Os -Wl,--gc-sections
compiler.S.cmd=arm-none-eabi-gcc
compiler.S.flags=-c -g -x assembler-with-cpp -MMD