summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormortimer <mortimer@openbsd.org>2020-10-12 17:21:39 +0000
committermortimer <mortimer@openbsd.org>2020-10-12 17:21:39 +0000
commitb56aa078d0351326fb8a1ccf186b1b4ff60e752e (patch)
tree9092564f7f90462fbd778d4a098e8b4ac21e2cf4
parentupdate retguard list (diff)
downloadwireguard-openbsd-b56aa078d0351326fb8a1ccf186b1b4ff60e752e.tar.xz
wireguard-openbsd-b56aa078d0351326fb8a1ccf186b1b4ff60e752e.zip
Disable retguard for clang build.
Fixes build on powerpc
-rw-r--r--gnu/usr.bin/clang/Makefile.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/clang/Makefile.inc b/gnu/usr.bin/clang/Makefile.inc
index 841c3279b43..5d685acb1b3 100644
--- a/gnu/usr.bin/clang/Makefile.inc
+++ b/gnu/usr.bin/clang/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.19 2020/08/03 14:45:22 patrick Exp $
+# $OpenBSD: Makefile.inc,v 1.20 2020/10/12 17:21:39 mortimer Exp $
CLANG_SRCS?= ${.CURDIR}/../../../llvm/clang
LLDB_SRCS?= ${.CURDIR}/../../../llvm/lldb
@@ -29,7 +29,7 @@ CPPFLAGS+= -DNDEBUG
# Disable some protections in the compiler to regain performance.
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" || \
${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el" || \
- ${MACHINE_ARCH} == "aarch64"
+ ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "powerpc"
CXXFLAGS+= -fno-ret-protector
.endif
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"