aboutsummaryrefslogtreecommitdiff
path: root/lib/libcompiler_rt
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2011-01-07 14:35:45 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2011-01-07 14:35:45 +0000
commit153344e7d37761fa0f4e82cf4931dfac8c4928ec (patch)
treeae5e9755c46542e3b4f2bf6c4b62dd317ebe2201 /lib/libcompiler_rt
parent5ada7d99afaae4a076a52cf31938e98646e31ee0 (diff)
Notes
Diffstat (limited to 'lib/libcompiler_rt')
-rw-r--r--lib/libcompiler_rt/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libcompiler_rt/Makefile b/lib/libcompiler_rt/Makefile
index f27dcf545c8e..6e3ebb93b8af 100644
--- a/lib/libcompiler_rt/Makefile
+++ b/lib/libcompiler_rt/Makefile
@@ -156,4 +156,10 @@ SYMLINKS+=libcompiler_rt_p.a ${LIBDIR}/libgcc_p.a
. endif
.endif
+.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
+AFLAGS+=--noexecstack
+ACFLAGS+=-Wl,a,--noexecstack
+.endif
+
+
.include <bsd.lib.mk>