aboutsummaryrefslogtreecommitdiff
path: root/.make/cc.mk
diff options
context:
space:
mode:
Diffstat (limited to '.make/cc.mk')
-rw-r--r--.make/cc.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/.make/cc.mk b/.make/cc.mk
new file mode 100644
index 000000000..58724089a
--- /dev/null
+++ b/.make/cc.mk
@@ -0,0 +1,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