size optimization
authorLaurent Mazet <laurent.mazet@thalesgroup.com>
Tue, 13 Dec 2022 11:03:08 +0000 (12:03 +0100)
committerLaurent Mazet <laurent.mazet@thalesgroup.com>
Tue, 13 Dec 2022 11:03:08 +0000 (12:03 +0100)
makefile

index 49a8ae72b706b48c2250188f554624ba216e3985..918645fa9f1701a4ad552c9032073d2f49ecec92 100644 (file)
--- a/makefile
+++ b/makefile
@@ -3,8 +3,9 @@
 CC = gcc
 
 INCLUDES = -I../debug -D__MEMORY_ALLOCATION__
+OFLAGS  = -O4 -Os
 #OFLAGS  = -O4 -ffast-math -finline-functions
-OFLAGS  = -O4 -finline-functions
+#OFLAGS  = -O4 -finline-functions
 #OFLAGS += -mtune=pentium3 -mmmx -msse -msse2 -m3dnow
 #OFLAGS += -minline-all-stringops -fsingle-precision-constant
 #OFLAGS += -malign-double
@@ -12,7 +13,6 @@ CFLAGS += -W -Wall -Wextra -g
 CFLAGS += -std=c99 -D_XOPEN_SOURCE=500
 CFLAGS += $(OFLAGS) $(INCLUDES)
 LDFLAGS += -g
-LDFLAGS += -static-libgcc
 
 # Targets