summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoakim Sindholt <opensource@zhasha.com>2016-02-19 18:05:40 +0100
committerJoakim Sindholt <opensource@zhasha.com>2016-02-19 18:05:40 +0100
commitaeb1cbba8469786403708b1f049685baeb247ef9 (patch)
tree46f478a682e6349bb5da7e49a3213ba2f6831484
parent443dadf03193dac51ad469b15ae9e8c13534c946 (diff)
more cflags tweaking
This shouldn't hurt debug instrumentation but produce better binaries
-rw-r--r--bin/build-libc.sh2
-rw-r--r--bin/p9c.sh3
2 files changed, 3 insertions, 2 deletions
diff --git a/bin/build-libc.sh b/bin/build-libc.sh
index ac80b20..02ddee9 100644
--- a/bin/build-libc.sh
+++ b/bin/build-libc.sh
@@ -49,7 +49,7 @@ Linux)
cd "${SRCDIR}/musl" && \
make distclean ARCH=bug && \
CC="clang --target=${CLANGARCH} -integrated-as" \
- CFLAGS="-ggdb3 -Os -pipe -fPIE -ftls-model=local-exec -fstack-protector-all" \
+ CFLAGS="-ggdb3 -Os -pipe -fPIE -ftls-model=local-exec -fomit-frame-pointer -fstack-protector-strong" \
GNUTARGET="${CLANGARCH}" ./configure \
--target="${MUSLARCH}" \
--prefix="${OBJDIR}" \
diff --git a/bin/p9c.sh b/bin/p9c.sh
index 873a96a..c940185 100644
--- a/bin/p9c.sh
+++ b/bin/p9c.sh
@@ -159,7 +159,8 @@ do
-pipe -std=c11 -fPIE -ftls-model=local-exec \
-fdata-sections -ffunction-sections \
-fno-unwind-tables -fno-asynchronous-unwind-tables \
- -fstack-protector-all \
+ -fomit-frame-pointer \
+ -fstack-protector-strong \
-nostdlibinc \
-isystem "${DIR}/../src/fortify-headers/include" \
-isystem "${DIR}/../${objtype}/include" \