summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2022-09-12 08:59:15 +0000
committerhe <he@pkgsrc.org>2022-09-12 08:59:15 +0000
commit47a149fd3998af515bbf286ca16ffbe8c5b968b1 (patch)
treefff0b505f20fb3183b278f5ec41a5b39ed974821 /lang
parente7498decd449dec013d5c54bdae86fb240fe23cc (diff)
downloadpkgsrc-47a149fd3998af515bbf286ca16ffbe8c5b968b1.tar.gz
lang/llvm: fix the logic in the powerpc section...
...so that we don't insist on -mno-pltseq on older NetBSD.
Diffstat (limited to 'lang')
-rw-r--r--lang/llvm/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/lang/llvm/Makefile b/lang/llvm/Makefile
index fcff7b1f252..46dd5d4fcb0 100644
--- a/lang/llvm/Makefile
+++ b/lang/llvm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.81 2022/09/01 01:36:42 gutteridge Exp $
+# $NetBSD: Makefile,v 1.82 2022/09/12 08:59:15 he Exp $
#
# When updating this, please also update:
# devel/include-what-you-use
@@ -118,11 +118,13 @@ CXXFLAGS+= -march=i586
# Needed to avoid "relocation truncated to fit: R_PPC_REL24"
CFLAGS+= -mlongcall
CXXFLAGS+= -mlongcall
-. if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} >= 099917
+. if ${OPSYS} == "NetBSD"
+. if ${OPSYS_VERSION} >= 099917
# 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 # (just drop for older NetBSD)
. else # Not NetBSD
# Let's just insist on newer gcc -- untested.
CFLAGS+= -mno-pltseq