pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/llvm llvm: On NetBSD/powerpc 8.x or 9.x, omit use...
details: https://anonhg.NetBSD.org/pkgsrc/rev/5a6375045845
branches: trunk
changeset: 384260:5a6375045845
user: he <he%pkgsrc.org@localhost>
date: Tue Aug 30 07:13:02 2022 +0000
description:
llvm: On NetBSD/powerpc 8.x or 9.x, omit use of -mno-pltseq.
Fixes build on NetBSD/macppc 8.0, where we end up with pkgsrc gcc7.
NetBSD 9.0 has gcc 7.4 in-tree, so is also missing -mno-pltseq.
On non-NetBSD powerpc platforms, for now just insist on -mno-pltseq,
i.e. a gcc at least newer than 7 (untested).
diffstat:
lang/llvm/Makefile | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r 4c5c79702cfb -r 5a6375045845 lang/llvm/Makefile
--- a/lang/llvm/Makefile Mon Aug 29 16:27:44 2022 +0000
+++ b/lang/llvm/Makefile Tue Aug 30 07:13:02 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.78 2022/08/24 14:38:56 ryoon Exp $
+# $NetBSD: Makefile,v 1.79 2022/08/30 07:13:02 he Exp $
#
# When updating this, please also update:
# devel/include-what-you-use
@@ -116,8 +116,20 @@
.if ${MACHINE_ARCH:Mpowerpc*}
# Needed to avoid "relocation truncated to fit: R_PPC_REL24"
-CFLAGS+= -mlongcall -mno-pltseq
-CXXFLAGS+= -mlongcall -mno-pltseq
+CFLAGS+= -mlongcall
+CXXFLAGS+= -mlongcall
+. if ${OPSYS} == "NetBSD"
+. if empty(OS_VERSION:M8.*) && empty(OS_VERSION:M9.[012345678]*)
+# The -mno-pltseq option is not available in gcc7, but is needed for
+# the above-mentioned relocation truncation issue in newer GCC
+CFLAGS+= -mno-pltseq
+CXXFLAGS+= -mno-pltseq
+. endif
+. else # Not NetBSD
+# Let's just insist on newer gcc -- untested.
+CFLAGS+= -mno-pltseq
+CXXFLAGS+= -mno-pltseq
+. endif
.endif
.if ${OPSYS} == "NetBSD"
Home |
Main Index |
Thread Index |
Old Index