pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/libLLVM On powerpc, use -mlongcall so that we don...
details: https://anonhg.NetBSD.org/pkgsrc/rev/731d611c80de
branches: trunk
changeset: 439265:731d611c80de
user: he <he%pkgsrc.org@localhost>
date: Tue Sep 15 16:16:29 2020 +0000
description:
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 a6d9ceb5456c -r 731d611c80de lang/libLLVM/hacks.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/libLLVM/hacks.mk Tue Sep 15 16:16:29 2020 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: hacks.mk,v 1.1 2020/09/15 16:16:29 he 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