summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoakim Sindholt <opensource@zhasha.com>2016-02-17 23:47:16 +0100
committerJoakim Sindholt <opensource@zhasha.com>2016-02-17 23:47:16 +0100
commit443dadf03193dac51ad469b15ae9e8c13534c946 (patch)
tree6a44e2deac9c710d6745308174fbab004a4e929f
parent51886ad8050e57223abf72226746defefe071244 (diff)
more cflags tuning
-rw-r--r--bin/p9c.sh1
-rw-r--r--src/compiler-rt.mk2
2 files changed, 3 insertions, 0 deletions
diff --git a/bin/p9c.sh b/bin/p9c.sh
index 9434e11..873a96a 100644
--- a/bin/p9c.sh
+++ b/bin/p9c.sh
@@ -158,6 +158,7 @@ do
-target "$CLANGARCH" \
-pipe -std=c11 -fPIE -ftls-model=local-exec \
-fdata-sections -ffunction-sections \
+ -fno-unwind-tables -fno-asynchronous-unwind-tables \
-fstack-protector-all \
-nostdlibinc \
-isystem "${DIR}/../src/fortify-headers/include" \
diff --git a/src/compiler-rt.mk b/src/compiler-rt.mk
index 049be30..0973e56 100644
--- a/src/compiler-rt.mk
+++ b/src/compiler-rt.mk
@@ -21,6 +21,8 @@ RANLIB=ranlib
INSTALL=install
CFLAGS=-O3 -fomit-frame-pointer -Wa,--noexecstack \
+ -ffunction-sections -fdata-sections \
+ -fno-unwind-tables -fno-asynchronous-unwind-tables \
-integrated-as -target $(CCTARGET) -fPIE -ftls-model=local-exec \
-nostdlibinc -isystem ../$(objtype)/include -include visibility.h \