always strip instead of flto
This commit is contained in:
parent
3931e38634
commit
1fdc16106f
1 changed files with 3 additions and 1 deletions
4
Makefile
4
Makefile
|
@ -22,7 +22,7 @@ AWK = awk
|
||||||
STRIP = strip -s
|
STRIP = strip -s
|
||||||
|
|
||||||
# Déclaration des options du compilateur
|
# Déclaration des options du compilateur
|
||||||
COPTI = -O3 -flto
|
COPTI = -O3
|
||||||
CFLAGS = -Wall $(COPTI) -std=gnu17
|
CFLAGS = -Wall $(COPTI) -std=gnu17
|
||||||
CPPFLAGS = -I.
|
CPPFLAGS = -I.
|
||||||
LDFLAGS = -lm
|
LDFLAGS = -lm
|
||||||
|
@ -69,6 +69,8 @@ CPPFLAGS += $(shell sdl2-config --cflags)
|
||||||
LDFLAGS += -lGL4Dummies $(shell sdl2-config --libs) -lSDL2_mixer -lSDL2_image -lSDL2_ttf
|
LDFLAGS += -lGL4Dummies $(shell sdl2-config --libs) -lSDL2_mixer -lSDL2_image -lSDL2_ttf
|
||||||
|
|
||||||
all: $(PROGNAME)
|
all: $(PROGNAME)
|
||||||
|
all: strip
|
||||||
|
|
||||||
$(PROGNAME): $(OBJ)
|
$(PROGNAME): $(OBJ)
|
||||||
$(CC) $(OBJ) $(LDFLAGS) -o $(PROGNAME)
|
$(CC) $(OBJ) $(LDFLAGS) -o $(PROGNAME)
|
||||||
|
|
||||||
|
|
Reference in a new issue