Add some flags

This commit is contained in:
Franck STAUFFER 2020-08-04 09:05:52 +02:00
parent 53446c190b
commit c34af5592b
Signed by: franck.stauffer
GPG Key ID: AAF5A94045CEC261
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
CPPFLAGS = -D_DEFAULT_SOURCE -D_FOTIFY_SOURCE=2
CFLAGS = $(CPPFLAGS) -std=c99 -pedantic -Wall -Wextra -march=native -mtune=native -O2
LDFLAGS = -Wl,-z,relro,-z,now,-O2 -lSDL2 -lSDL2_mixer
CFLAGS = $(CPPFLAGS) -std=c99 -pedantic -Wall -Wextra -O2 -fstack-protector -flto -fPIE -pipe
LDFLAGS = -Wl,-z,relro,-z,now,-O2 -lSDL2 -lSDL2_mixer -flto -pie
default: bin obj bin/chip8