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:
parent
cfa1b3b10f
commit
9395a6ca7e
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -1,5 +1,5 @@
|
||||||
CFLAGS = -Wall -Wextra -Werror -Wl,-z,now -D_FORTIFY_SOURCE=2
|
CFLAGS = -Wall -Wextra -Werror -Wl,-z,now
|
||||||
CFLAGS_RELEASE = ${CFLAGS} -O2 -s
|
CFLAGS_RELEASE = ${CFLAGS} -O2 -s -D_FORTIFY_SOURCE=2
|
||||||
CFLAGS_DEBUG = ${CFLAGS} -O0 -g -fsanitize=leak,undefined
|
CFLAGS_DEBUG = ${CFLAGS} -O0 -g -fsanitize=leak,undefined
|
||||||
LIBS = -lbsd -lcrypt
|
LIBS = -lbsd -lcrypt
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
|
Loading…
Add table
Reference in a new issue