Remove unusefull flags and move static directive to link options, where it belongs.
authorNathael Pajani <nathael.pajani@ed3l.fr>
Wed, 16 Jul 2014 01:29:16 +0000 (03:29 +0200)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000 (17:03 +0100)
Makefile

index 2208c20..ad75333 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,12 +7,9 @@ ARCH = armv6-m
 
 CROSS_COMPILE = arm-linux-gnueabi-
 CC = $(CROSS_COMPILE)gcc
-
-FOPTS = -fmessage-length=0 -ffunction-sections -fdata-sections \
-               -static -fno-builtin
+FOPTS = -fno-builtin -ffunction-sections -fdata-sections
 CFLAGS = -Wall -O2 -mthumb -mcpu=$(CPU) $(FOPTS)
-#CFLAGS = -Wall -O2 -mthumb -march=$(ARCH) $(FOPTS)
-LINKOPTS = -nostartfiles -Wl,--gc-sections -Wl,--build-id=none \
+LINKOPTS = -static -nostartfiles -Wl,--gc-sections -Wl,--build-id=none \
                   -Wl,-Map=lpc_map_$(LPC).map -Tlpc_link_$(LPC).ld