Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/llvm If on powerpc, add -mlongcall to CFLAGS and ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/14bd189f65e0
branches:  trunk
changeset: 435324:14bd189f65e0
user:      he <he%pkgsrc.org@localhost>
date:      Mon Jul 06 07:16:00 2020 +0000

description:
If on powerpc, add -mlongcall to CFLAGS and CXXFLAGS, to avoid
"relocation truncated to fit: R_PPC_REL24" error.

diffstat:

 lang/llvm/options.mk |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 6fe92bdc6ee6 -r 14bd189f65e0 lang/llvm/options.mk
--- a/lang/llvm/options.mk      Sun Jul 05 19:48:18 2020 +0000
+++ b/lang/llvm/options.mk      Mon Jul 06 07:16:00 2020 +0000
@@ -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+=                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*)



Home | Main Index | Thread Index | Old Index