summaryrefslogtreecommitdiff
path: root/devel/glib
diff options
context:
space:
mode:
authorgdt <gdt@pkgsrc.org>2019-11-24 01:02:37 +0000
committergdt <gdt@pkgsrc.org>2019-11-24 01:02:37 +0000
commit0ee378f68b3bca213eb6644653b79f9552807e7a (patch)
tree439c3830c5a1225cf34aedd50da38151e4db9982 /devel/glib
parentd6de32f7192f36d0a8750e6b327e51ff8bed5b5d (diff)
downloadpkgsrc-0ee378f68b3bca213eb6644653b79f9552807e7a.tar.gz
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 (limited to 'devel/glib')
-rw-r--r--devel/glib/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/devel/glib/Makefile b/devel/glib/Makefile
index c829c4f156f..b7130b34bf7 100644
--- a/devel/glib/Makefile
+++ b/devel/glib/Makefile
@@ -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 @@ PTHREAD_OPTS+= require
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