pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/clang clang: Use OPSYS_VERSION to numerically com...
details: https://anonhg.NetBSD.org/pkgsrc/rev/289774a9369b
branches: trunk
changeset: 378703:289774a9369b
user: nia <nia%pkgsrc.org@localhost>
date: Thu May 05 08:24:41 2022 +0000
description:
clang: Use OPSYS_VERSION to numerically compare NetBSD versions
diffstat:
lang/clang/Makefile.common | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 0532bbf0cae7 -r 289774a9369b lang/clang/Makefile.common
--- a/lang/clang/Makefile.common Thu May 05 08:24:05 2022 +0000
+++ b/lang/clang/Makefile.common Thu May 05 08:24:41 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.47 2021/11/23 20:55:43 wiz Exp $
+# $NetBSD: Makefile.common,v 1.48 2022/05/05 08:24:41 nia Exp $
# used by lang/clang/Makefile
# used by lang/clang-tools-extra/Makefile
@@ -33,7 +33,7 @@
# NetBSD < 10 did not provide ENOTRECOVERABLE
# https://bugs.llvm.org/show_bug.cgi?id=52587
-.if ${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[123456789].*)
+.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 099949
CXXFLAGS+= -D_GLIBCXX_HAVE_ENOTRECOVERABLE=1
CXXFLAGS+= -DENOTRECOVERABLE=98
.endif
Home |
Main Index |
Thread Index |
Old Index