diff options
author | gdt <gdt@pkgsrc.org> | 2019-11-24 01:05:00 +0000 |
---|---|---|
committer | gdt <gdt@pkgsrc.org> | 2019-11-24 01:05:00 +0000 |
commit | df5be1664efbe5430246f7081dea4711023b3da9 (patch) | |
tree | f1e20fc4b475591ab90e5ea31ef3fc2f6907316e /sysutils/coreutils | |
parent | 2f69268588b475e62842871b6a32ee5e2b2cb9ad (diff) | |
download | pkgsrc-df5be1664efbe5430246f7081dea4711023b3da9.tar.gz |
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 (limited to 'sysutils/coreutils')
-rw-r--r-- | sysutils/coreutils/Makefile.common | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysutils/coreutils/Makefile.common b/sysutils/coreutils/Makefile.common index 4c312ff420a..6fef60247ee 100644 --- a/sysutils/coreutils/Makefile.common +++ b/sysutils/coreutils/Makefile.common @@ -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 @@ CFLAGS+= -O2 # 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 |