diff options
author | gdt <gdt@pkgsrc.org> | 2019-11-24 01:05:37 +0000 |
---|---|---|
committer | gdt <gdt@pkgsrc.org> | 2019-11-24 01:05:37 +0000 |
commit | f5673d55c6e3ae4af02d12906458ab45c717a573 (patch) | |
tree | 48a30fc579ac508d6d27f6536d4c040f44618595 /www/varnish | |
parent | df5be1664efbe5430246f7081dea4711023b3da9 (diff) | |
download | pkgsrc-f5673d55c6e3ae4af02d12906458ab45c717a573.tar.gz |
www/varnish: Fix compiler check via pkglint
AUTOFIX: Makefile:58: Replacing "${PKGSRC_COMPILER} == \"sunpro\"" with "${PKGSRC_COMPILER:Msunpro}".
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 'www/varnish')
-rw-r--r-- | www/varnish/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/varnish/Makefile b/www/varnish/Makefile index 2d61746f568..77e592f4f60 100644 --- a/www/varnish/Makefile +++ b/www/varnish/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.27 2019/04/25 07:33:28 maya Exp $ +# $NetBSD: Makefile,v 1.28 2019/11/24 01:05:37 gdt Exp $ # DISTNAME= varnish-3.0.6 @@ -55,7 +55,7 @@ CONFIGURE_ARGS+= --with-rst2html=${PREFIX}/bin/rst2html-${PYVERSSUFFIX}.py .if ${OPSYS} == "SunOS" # Explicitly disable epoll on illumos, provided for Linux compat only. CONFIGURE_ENV+= ac_cv_func_epoll_ctl=no -. if ${PKGSRC_COMPILER} == "sunpro" +. if ${PKGSRC_COMPILER:Msunpro} CONFIGURE_ENV+= VCC_CC="cc ${_COMPILER_ABI_FLAG.${ABI}} -Kpic -G -o %o %s" . else CONFIGURE_ENV+= VCC_CC="gcc ${_COMPILER_ABI_FLAG.${ABI}} -fpic -shared -o %o %s" |