pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/coreutils sysutils/coreutils: Fix compiler ch...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ca18dbc898b8
branches:  trunk
changeset: 418288:ca18dbc898b8
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Sun Nov 24 01:05:00 2019 +0000

description:
sysutils/coreutils: Fix compiler check via pkglint

AUTOFIX: Makefile.common:51: 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:

 sysutils/coreutils/Makefile.common |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 3293c0f256f2 -r ca18dbc898b8 sysutils/coreutils/Makefile.common
--- a/sysutils/coreutils/Makefile.common        Sun Nov 24 01:04:20 2019 +0000
+++ b/sysutils/coreutils/Makefile.common        Sun Nov 24 01:05:00 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.20 2019/11/04 21:28:43 rillig Exp $
+# $NetBSD: Makefile.common,v 1.21 2019/11/24 01:05:00 gdt Exp $
 #
 # used by sysutils/coreutils/Makefile
 # used by misc/gnuls/Makefile
@@ -48,7 +48,7 @@
 
 # clang on SunOS parses -errwarn as an -e entry point argument to the linker,
 # which ignores it as it's a duplicate argument.  Turn it off explicitly.
-.if ${PKGSRC_COMPILER} == "clang"
+.if ${PKGSRC_COMPILER:Mclang}
 CONFIGURE_ENV.SunOS+=  gl_cv_warn_c__errwarn=no
 .endif
 



Home | Main Index | Thread Index | Old Index