pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/llvm



Module Name:    pkgsrc
Committed By:   he
Date:           Tue Aug 30 07:13:02 UTC 2022

Modified Files:
        pkgsrc/lang/llvm: Makefile

Log Message:
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).


To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 pkgsrc/lang/llvm/Makefile

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/Makefile
diff -u pkgsrc/lang/llvm/Makefile:1.78 pkgsrc/lang/llvm/Makefile:1.79
--- pkgsrc/lang/llvm/Makefile:1.78      Wed Aug 24 14:38:56 2022
+++ pkgsrc/lang/llvm/Makefile   Tue Aug 30 07:13:02 2022
@@ -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 @@ CXXFLAGS+= -march=i586
 
 .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