From e72674e358959524411a1613bb73b4d4110ea877 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Tue, 28 Aug 2018 11:13:17 -0400 Subject: [PATCH] detect missing symbols when linking --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b4cd66a..c2bf73f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ CPPFLAGS := -D_GNU_SOURCE CFLAGS := -std=c11 -Wall -Wextra -O2 -flto -fPIC -fvisibility=hidden -pedantic -LDFLAGS := -Wl,--as-needed +LDFLAGS := -Wl,--as-needed,-z,defs LDLIBS := -lpthread OBJECTS := chacha.o malloc.o random.o util.o