File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ ifeq ($(STD),c++20)
2424WARNFLAGS+ =-Wno-volatile
2525endif
2626
27- CXXFLAGS=-std =$(STD ) -O2 $(WARNFLAGS ) -fno-exceptions -fno-rtti -fno-unwind-tables -fno-threadsafe-statics -Wshadow -Wcast-qual -Wpointer-arith -Wundef
28- LDFLAGS =-lm
27+ CXXFLAGS=-std =$(STD ) -O2 $(WARNFLAGS ) -mdouble=64 -mlong-double=64 - fno-exceptions -fno-rtti -fno-unwind-tables -fno-threadsafe-statics -Wshadow -Wcast-qual -Wpointer-arith -Wundef
28+ LDFLAGS =-x none $( CXXFLAGS ) - lm
2929
3030TARGET =$(BUILD_DIR ) /$(NAME )
3131
@@ -41,11 +41,11 @@ $(TARGET).elf: $(OBJECTS)
4141
4242$(BUILD_DIR ) /% .cpp.o : % .cpp
4343 @mkdir -p $(BUILD_DIR )
44- avr-g++ -c $(CXXFLAGS ) -mmcu=$(MCU ) -mdouble=64 -mlong-double=64 $(INCLUDES ) $< -o $@
44+ avr-g++ -c $(CXXFLAGS ) -mmcu=$(MCU ) $(INCLUDES ) $< -o $@
4545
4646$(BUILD_DIR ) /% .cc.o : % .cc
4747 @mkdir -p $(BUILD_DIR )
48- avr-g++ -c $(CXXFLAGS ) -mmcu=$(MCU ) -mdouble=64 -mlong-double=64 $(INCLUDES ) $< -o $@
48+ avr-g++ -c $(CXXFLAGS ) -mmcu=$(MCU ) $(INCLUDES ) $< -o $@
4949
5050size : $(TARGET ) .elf
5151 avr-objdump -Pmem-usage $(TARGET ) .elf
You can’t perform that action at this time.
0 commit comments