diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2011-01-07 14:35:45 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2011-01-07 14:35:45 +0000 |
| commit | 153344e7d37761fa0f4e82cf4931dfac8c4928ec (patch) | |
| tree | ae5e9755c46542e3b4f2bf6c4b62dd317ebe2201 /lib/libcompiler_rt | |
| parent | 5ada7d99afaae4a076a52cf31938e98646e31ee0 (diff) | |
Notes
Diffstat (limited to 'lib/libcompiler_rt')
| -rw-r--r-- | lib/libcompiler_rt/Makefile | 6 |
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> |
