From 3a936295f8b647b23cf95cd7c490d777f33a4eb8 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 5 Oct 2018 02:45:40 -0400 Subject: [PATCH] Makefile: split out shared compiler flags --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fcc0435..e1cd745 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,9 @@ CONFIG_CXX_ALLOCATOR := true CPPFLAGS := -D_GNU_SOURCE -CFLAGS := -std=c11 -Wall -Wextra -Wmissing-prototypes -O2 -flto -fPIC -fvisibility=hidden -fno-plt -pipe -CXXFLAGS := -std=c++14 -Wall -Wextra -O2 -flto -fPIC -fvisibility=hidden -fno-plt -pipe +SHARED_FLAGS := -O2 -flto -fPIC -fvisibility=hidden -fno-plt -pipe -Wall -Wextra +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 OBJECTS := chacha.o malloc.o memory.o pages.o random.o util.o