1
0
Fork 0
forked from soccera/rdo

Fix debug build

GCC doesnt want to compile a binary with fortify when optimizations are
disabled, so we move the fortification process into the release flags.
This commit is contained in:
sw1tchbl4d3 2022-03-08 16:26:18 +01:00
parent cfa1b3b10f
commit 9395a6ca7e

View file

@ -1,5 +1,5 @@
CFLAGS = -Wall -Wextra -Werror -Wl,-z,now -D_FORTIFY_SOURCE=2
CFLAGS_RELEASE = ${CFLAGS} -O2 -s
CFLAGS = -Wall -Wextra -Werror -Wl,-z,now
CFLAGS_RELEASE = ${CFLAGS} -O2 -s -D_FORTIFY_SOURCE=2
CFLAGS_DEBUG = ${CFLAGS} -O0 -g -fsanitize=leak,undefined
LIBS = -lbsd -lcrypt
CC = gcc