aboutsummaryrefslogtreecommitdiff
path: root/.make/cc.mk
diff options
context:
space:
mode:
authorGravatar Robert Sloan <varomodt@dhcp-18-189-51-40.dyn.MIT.EDU>2015-09-10 18:52:17 -0400
committerGravatar Robert Sloan <varomodt@dhcp-18-189-51-40.dyn.MIT.EDU>2015-09-10 18:52:17 -0400
commit2c7b377febf9f42de6c7313dfe4154efdfb90da1 (patch)
tree3cd619d157fd7d228a9f534be23b3d23261bdf33 /.make/cc.mk
parentf4e1d24da03c54fde2df41aa4a3d8ed17940004e (diff)
init our centralized repo
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