pkgsrc-Changes archive

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

CVS commit: [pkgsrc-2020Q2] pkgsrc/lang/llvm



Module Name:    pkgsrc
Committed By:   bsiegert
Date:           Thu Jul  9 06:39:00 UTC 2020

Modified Files:
        pkgsrc/lang/llvm [pkgsrc-2020Q2]: options.mk

Log Message:
Pullup ticket #6262 - requested by he
lang/llvm: powerpc build fix

Revisions pulled up:
- lang/llvm/options.mk                                          1.7

---
   Module Name: pkgsrc
   Committed By:        he
   Date:                Mon Jul  6 07:16:00 UTC 2020

   Modified Files:
        pkgsrc/lang/llvm: options.mk

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


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.6.6.1 pkgsrc/lang/llvm/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/llvm/options.mk
diff -u pkgsrc/lang/llvm/options.mk:1.6 pkgsrc/lang/llvm/options.mk:1.6.6.1
--- pkgsrc/lang/llvm/options.mk:1.6     Mon Nov 11 19:22:28 2019
+++ pkgsrc/lang/llvm/options.mk Thu Jul  9 06:39:00 2020
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.6 2019/11/11 19:22:28 nia Exp $
+# $NetBSD: options.mk,v 1.6.6.1 2020/07/09 06:39:00 bsiegert 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*)



Home | Main Index | Thread Index | Old Index