Makefile: split out shared compiler flags

pull/50/head
Daniel Micay 2018-10-05 02:45:40 -04:00
parent 4716ff5b92
commit 3a936295f8
1 changed files with 3 additions and 2 deletions

View File

@ -1,8 +1,9 @@
CONFIG_CXX_ALLOCATOR := true CONFIG_CXX_ALLOCATOR := true
CPPFLAGS := -D_GNU_SOURCE CPPFLAGS := -D_GNU_SOURCE
CFLAGS := -std=c11 -Wall -Wextra -Wmissing-prototypes -O2 -flto -fPIC -fvisibility=hidden -fno-plt -pipe SHARED_FLAGS := -O2 -flto -fPIC -fvisibility=hidden -fno-plt -pipe -Wall -Wextra
CXXFLAGS := -std=c++14 -Wall -Wextra -O2 -flto -fPIC -fvisibility=hidden -fno-plt -pipe 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,-z,defs,-z,relro,-z,now,-z,nodlopen,-z,text
OBJECTS := chacha.o malloc.o memory.o pages.o random.o util.o OBJECTS := chacha.o malloc.o memory.o pages.o random.o util.o