From 505b9d2e7644771303cb779e693b066779c51c36 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 4 Nov 2018 14:32:03 -0500 Subject: [PATCH] add missing -Wl,--as-needed (removed by mistake) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9f25b61..c6298fb 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ endif CFLAGS := -std=c11 $(SHARED_FLAGS) -Wmissing-prototypes CXXFLAGS := -std=c++14 $(SHARED_FLAGS) -LDFLAGS := -Wl,-z,defs,-z,relro,-z,now,-z,nodlopen,-z,text +LDFLAGS := -Wl,--as-needed,-z,defs,-z,relro,-z,now,-z,nodlopen,-z,text TIDY_CHECKS := -checks=bugprone-*,-bugprone-macro-parentheses,cert-*,clang-analyzer-*,readability-*,-readability-else-after-return,-readability-inconsistent-declaration-parameter-name,-readability-named-parameter SOURCES := chacha.c malloc.c memory.c pages.c random.c util.c