mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-09-20 23:36:31 +08:00
CHG: Added the parameters -fdata-sections -ffunction-sections to common/Makefile.common for making the .elf filesize smaller.
REF: https://github.com/Proxmark/proxmark3/issues/83
This commit is contained in:
parent
aa60d1560e
commit
7c99b4f782
|
@ -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
|
LDFLAGS = -nostartfiles -nodefaultlibs -Wl,-gc-sections -n
|
||||||
|
|
||||||
LIBS = -lgcc
|
LIBS = -lgcc
|
||||||
|
|
Loading…
Reference in a new issue