From: Nathael Pajani Date: Wed, 16 Jul 2014 01:29:16 +0000 (+0200) Subject: Remove unusefull flags and move static directive to link options, where it belongs. X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=83f7529b8589e7b962cdb758ab1adbafd3b8435b;p=soft%2Flpc122x%2Fcore Remove unusefull flags and move static directive to link options, where it belongs. --- diff --git a/Makefile b/Makefile index 2208c20..ad75333 100644 --- 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