pkgsrc-WIP-changes archive

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

www/chawan: use better method to detect the compiler



Module Name:	pkgsrc-wip
Committed By:	arcathrax <ivan%ivanpollak.com@localhost>
Pushed By:	arcathrax
Date:		Sun Oct 25 21:08:34 2026 +0100
Changeset:	7d78e6ca770c7204f2b0872b8fbd20a1e0725483

Modified Files:
	chawan/Makefile

Log Message:
www/chawan: use better method to detect the compiler

Using PKGSRC_COMPILER instead of just CC is a better alternative to detect the
c compiler that is set for pkgsrc. Thanks to jperkin.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7d78e6ca770c7204f2b0872b8fbd20a1e0725483

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 chawan/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diffs:
diff --git a/chawan/Makefile b/chawan/Makefile
index 2a308e9fe1..40236b3547 100644
--- a/chawan/Makefile
+++ b/chawan/Makefile
@@ -18,7 +18,10 @@ WRKSRC=		${WRKDIR}/chawan-${DISTNAME}
 USE_TOOLS+=	gmake pkg-config
 MAKE_ENV+=	MANPREFIX=${PREFIX}/${PKGMANDIR}
 
-.if ${CC} != "clang"
+# gcc is stricter than clang and thus the incompatible-pointer-types error
+# should be ignored.
+.include "../../mk/compiler.mk"
+.if empty(PKGSRC_COMPILER:Mclang)
 CFLAGS+=		-Wno-incompatible-pointer-types
 .endif
 


Home | Main Index | Thread Index | Old Index