aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2020-04-25 21:47:45 -0400
committerJason Woodward2020-04-25 21:47:45 -0400
commitb44d77141b1d4b8fc42d96695be7a9a6bc0147d9 (patch)
tree55e3bd19e2f47e617700e1b7b0646fb7b0dfc56a
parentf757ab03575256401ae9ba93fe9b0bb895ac96d1 (diff)
downloadslapt-get-b44d77141b1d4b8fc42d96695be7a9a6bc0147d9.tar.gz
Makefile: set TESTBUILD CFLAGS
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 41774f4..e279c3b 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,11 @@ ifeq ($(HAS_GPGME),1)
LIBHEADERS+=src/slaptgpgme.h
LDFLAGS+=`gpgme-config --libs`
endif
+ifeq ($(TESTBUILD),1)
+CFLAGS?=-W -Werror -Wall -Wextra -O2 -pedantic -Wshadow -Wstrict-overflow -fno-strict-aliasing -g -fsanitize=undefined -fsanitize=address -fstack-protector -ggdb -fno-omit-frame-pointer
+else
CFLAGS?=-W -Werror -Wall -Wextra -O2 -pedantic -Wshadow -Wstrict-overflow -fno-strict-aliasing -g
+endif
CFLAGS+=$(DEFINES) -fPIC
default: $(PACKAGE)