Browse Source

Use linker "--relax" option.

The "relax" option enables the linker to convert certain "call"
instructions to the smaller "rcall" instruction.  This reduces the
size of the resulting binary.
Kevin O'Connor 12 years ago
parent
commit
16fbb455ef
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/Makefile

+ 1
- 1
Marlin/Makefile View File

@@ -254,7 +254,7 @@ endif
254 254
 CFLAGS = $(CDEBUG) $(CDEFS) $(CINCS) -O$(OPT) $(CWARN) $(CEXTRA) $(CTUNING)
255 255
 CXXFLAGS =         $(CDEFS) $(CINCS) -O$(OPT) -Wall    $(CEXTRA) $(CTUNING)
256 256
 #ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs 
257
-LDFLAGS = -lm
257
+LDFLAGS = -lm -Wl,--relax
258 258
 
259 259
 
260 260
 # Programming support using avrdude. Settings and variables.

Loading…
Cancel
Save