summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2023-11-17 15:46:59 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2023-11-17 15:46:59 +0000
commit46df9b7b518ae9c6725d6e862734184f122f8d3b (patch)
tree405c78c1f50e8cdb9bb1759bb2db9c90318ba619 /gnu/usr.bin
parentafd9b99b7dc2ae9500fe3f4f6d52c0b685836794 (diff)
Use -mxgot to avoid GOT overflow during build on mips64.
Tested by deraadt@
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/clang/Makefile.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/usr.bin/clang/Makefile.inc b/gnu/usr.bin/clang/Makefile.inc
index f3f959cb00a..f5270652135 100644
--- a/gnu/usr.bin/clang/Makefile.inc
+++ b/gnu/usr.bin/clang/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.27 2023/11/11 18:35:35 robert Exp $
+# $OpenBSD: Makefile.inc,v 1.28 2023/11/17 15:46:58 visa Exp $
CLANG_SRCS?= ${.CURDIR}/../../../llvm/clang
LLDB_SRCS?= ${.CURDIR}/../../../llvm/lldb
@@ -41,6 +41,7 @@ CXXFLAGS+= -mno-retpoline
# Omit frame pointer to improve performance.
.if ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el"
CXXFLAGS+= -fomit-frame-pointer
+CXXFLAGS+= -mxgot
.endif
CPPFLAGS+= -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS \