You need to add the following flag:
Do not emit the extra code to use the routines specified in the C++ ABI for thread-safe initialization of local statics. You can use this option to reduce code size slightly in code that doesn’t need to be thread-safe.
If you use the Arduino IDE, you need to edit the
platform.txt of the board you’re using:
- The file is located at
- The line to change is