pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/glib devel/glib: Fix compiler check via pkglint
details: https://anonhg.NetBSD.org/pkgsrc/rev/bcad5a7dfb30
branches: trunk
changeset: 405159:bcad5a7dfb30
user: gdt <gdt%pkgsrc.org@localhost>
date: Sun Nov 24 01:02:37 2019 +0000
description:
devel/glib: Fix compiler check via pkglint
AUTOFIX: Makefile:35: Replacing "${PKGSRC_COMPILER} == \"clang\"" with "${PKGSRC_COMPILER:Mclang}".
The PKGSRC_COMPILER can be a list of chained compilers, e.g. "ccache
distcc clang". Therefore, comparing it using == or != leads to wrong
results in these cases.
diffstat:
devel/glib/Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r c373df1adec8 -r bcad5a7dfb30 devel/glib/Makefile
--- a/devel/glib/Makefile Sun Nov 24 00:47:54 2019 +0000
+++ b/devel/glib/Makefile Sun Nov 24 01:02:37 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.95 2019/05/23 19:22:58 rillig Exp $
+# $NetBSD: Makefile,v 1.96 2019/11/24 01:02:37 gdt Exp $
DISTNAME= glib-1.2.10
PKGREVISION= 11
@@ -32,7 +32,7 @@
CONFIGURE_ENV.NetBSD+= glib_cv_rtldglobal_broken=no
# Tests are insufficient, override with correct values.
-.if ${OPSYS} == "Darwin" && ${PKGSRC_COMPILER} == "clang"
+.if ${OPSYS} == "Darwin" && ${PKGSRC_COMPILER:Mclang}
CONFIGURE_ENV+= glib_cv_has__inline=yes
CONFIGURE_ENV+= glib_cv_has__inline__=yes
CONFIGURE_ENV+= glib_cv_hasinline=yes
Home |
Main Index |
Thread Index |
Old Index