aboutsummaryrefslogtreecommitdiff
path: root/.make/cc.mk
blob: 58724089a098fa238fd1c1eeeefa4caa19819342 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# © 2012–2015 the Massachusetts Institute of Technology
# @author bbaren

CC = clang
CXX = clang++

CPPFLAGS = \
	-Wall \
	-D_FORTIFY_SOURCE=2

CXXFLAGS = \
	-std=c++11 \
	-ftrapv \
	-fstack-protector-strong --param=ssp-buffer-size=4 \
	-fPIC \
	-O2 -g \
	-ffunction-sections -fdata-sections \
	-Weverything -Wno-c++98-compat

LDFLAGS = -fPIE -pie