pkgsrc-Changes-HG archive

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

[pkgsrc/pkgsrc-2020Q2]: pkgsrc/lang/libLLVM Pullup ticket #6326 - requested b...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ddd26980a0c0
branches:  pkgsrc-2020Q2
changeset: 439360:ddd26980a0c0
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Fri Sep 18 18:27:33 2020 +0000

description:
Pullup ticket #6326 - requested by he
lang/libLLVM: PowerPC build fix

Revisions pulled up:
- lang/libLLVM/hacks.mk                                         1.1

---
   Module Name: pkgsrc
   Committed By:        he
   Date:                Tue Sep 15 16:16:29 UTC 2020

   Added Files:
        pkgsrc/lang/libLLVM: hacks.mk

   Log Message:
   On powerpc, use -mlongcall so that we don't get 24-bit relocation overflow.

diffstat:

 lang/libLLVM/hacks.mk |  13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diffs (17 lines):

diff -r a96a952b758c -r ddd26980a0c0 lang/libLLVM/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/libLLVM/hacks.mk     Fri Sep 18 18:27:33 2020 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: hacks.mk,v 1.1.2.2 2020/09/18 18:27:33 bsiegert Exp $
+
+.if !defined(LIBLLVM_HACKS_MK)
+LIBLLVM_HACKS_MK=      defined
+
+# [ Tue Sep 15 07:21:13 CEST 2020 : he ]
+# On NetBSD/powerpc, enable -mlongcall, to avoid relocation overflows
+.if ${MACHINE_ARCH} == "powerpc"
+CFLAGS+=       -mlongcall
+CXXFLAGS+=     -mlongcall
+.endif
+
+.endif # LIBLLVM_HACKS_MK



Home | Main Index | Thread Index | Old Index