summaryrefslogtreecommitdiff
path: root/lang/llvm
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2020-07-06 07:16:00 +0000
committerhe <he@pkgsrc.org>2020-07-06 07:16:00 +0000
commit5e7195abeb77b6b31fe9b9f1ed7ca7a786534a55 (patch)
tree7fe22cdda193cfad60a13cdb4fa8e52c24a33ebc /lang/llvm
parent97125e8147dfaab62a2ab31fc6acb34e746511df (diff)
downloadpkgsrc-5e7195abeb77b6b31fe9b9f1ed7ca7a786534a55.tar.gz
If on powerpc, add -mlongcall to CFLAGS and CXXFLAGS, to avoid
"relocation truncated to fit: R_PPC_REL24" error.
Diffstat (limited to 'lang/llvm')
-rw-r--r--lang/llvm/options.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/lang/llvm/options.mk b/lang/llvm/options.mk
index 5ff69383b11..a62b8ab44ea 100644
--- a/lang/llvm/options.mk
+++ b/lang/llvm/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.6 2019/11/11 19:22:28 nia Exp $
+# $NetBSD: options.mk,v 1.7 2020/07/06 07:16:00 he Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.llvm
@@ -26,6 +26,9 @@ PKG_SUGGESTED_OPTIONS+= terminfo
PKG_SUGGESTED_OPTIONS+= llvm-target-sparc
.elif !empty(MACHINE_ARCH:Mpowerpc*)
PKG_SUGGESTED_OPTIONS+= llvm-target-powerpc
+# Needed to avoid "relocation truncated to fit: R_PPC_REL24"
+CFLAGS+= -mlongcall
+CXXFLAGS+= -mlongcall
.elif !empty(MACHINE_ARCH:Mearm*)
PKG_SUGGESTED_OPTIONS+= llvm-target-arm
.elif !empty(MACHINE_ARCH:M*mips*)