]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
CHG: Added the parameters -fdata-sections -ffunction-sections to common/Makefile...
authoriceman1001 <iceman@iuse.se>
Mon, 30 Mar 2015 14:27:07 +0000 (16:27 +0200)
committericeman1001 <iceman@iuse.se>
Mon, 30 Mar 2015 14:27:07 +0000 (16:27 +0200)
 REF: https://github.com/Proxmark/proxmark3/issues/83

common/Makefile.common

index 7e264d286a8a5a61186834f75ae0c22fd0f313ca..b933361048b6d3756e4c3e843976ce81fb360faf 100644 (file)
@@ -66,7 +66,9 @@ VPATH = . ../common/ ../fpga/
 
 INCLUDES = ../include/proxmark3.h ../include/at91sam7s512.h ../include/config_gpio.h ../include/usb_cmd.h $(APP_INCLUDES)
 
 
 INCLUDES = ../include/proxmark3.h ../include/at91sam7s512.h ../include/config_gpio.h ../include/usb_cmd.h $(APP_INCLUDES)
 
-CFLAGS =  -c $(INCLUDE) -Wall -Werror -pedantic -std=c99 -Os $(APP_CFLAGS)
+# compile hint: -flto to minimise size.
+CFLAGS =  -c $(INCLUDE) -Wall -Werror  -fdata-sections -ffunction-sections -pedantic -std=c99 -Os $(APP_CFLAGS)
+#CFLAGS =  -c $(INCLUDE) -Wall -Werror  -pedantic -std=c99 -Os $(APP_CFLAGS)
 LDFLAGS = -nostartfiles -nodefaultlibs -Wl,-gc-sections -n
 
 LIBS = -lgcc
 LDFLAGS = -nostartfiles -nodefaultlibs -Wl,-gc-sections -n
 
 LIBS = -lgcc
Impressum, Datenschutz