diff options
author | mortimer <mortimer@cvs.openbsd.org> | 2018-07-28 21:43:22 +0000 |
---|---|---|
committer | mortimer <mortimer@cvs.openbsd.org> | 2018-07-28 21:43:22 +0000 |
commit | cd32ea75e596052e189d87a62a3aa5f32682e7f4 (patch) | |
tree | 501b12b5124b38402514f13f744c7b2680c499ca /gnu/usr.bin/clang | |
parent | e782686b11eba299de4c7e9149e1a7286c51f6a8 (diff) |
Add -fno-ret-protector for arm64.
Prompted by deraadt
Diffstat (limited to 'gnu/usr.bin/clang')
-rw-r--r-- | gnu/usr.bin/clang/Makefile.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/clang/Makefile.inc b/gnu/usr.bin/clang/Makefile.inc index f772277db45..0b99edce43d 100644 --- a/gnu/usr.bin/clang/Makefile.inc +++ b/gnu/usr.bin/clang/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.6 2018/06/06 00:14:29 mortimer Exp $ +# $OpenBSD: Makefile.inc,v 1.7 2018/07/28 21:43:21 mortimer Exp $ LLVM_SRCS?= ${.CURDIR}/../../../llvm @@ -20,7 +20,7 @@ CLANG_INCLUDES= -I${LLVM_SRCS}/tools/clang/include CPPFLAGS+= -I${LLVM_SRCS}/include -I${.CURDIR}/../include -I${.OBJDIR} \ -I${.OBJDIR}/../include CPPFLAGS+= -DNDEBUG -.if ${MACHINE} == "amd64" +.if (${MACHINE} == "amd64" || ${MACHINE} == "arm64") CPPFLAGS+= -fno-ret-protector .endif CPPFLAGS+= -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS \ |