Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 76E2F84D96 for ; Tue, 12 Dec 2023 16:41:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id MWaw6uR8K-Fc for ; Tue, 12 Dec 2023 16:41:50 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id C198584CEA for ; Tue, 12 Dec 2023 16:41:49 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id B9121FA42; Tue, 12 Dec 2023 16:41:49 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_170239930978840" MIME-Version: 1.0 Date: Tue, 12 Dec 2023 16:41:49 +0000 From: "Greg Troxel" Subject: CVS commit: pkgsrc/mk/compiler To: pkgsrc-changes@NetBSD.org Approved: commit_and_comment Reply-To: gdt@netbsd.org X-Mailer: log_accum Message-Id: <20231212164149.B9121FA42@cvs.NetBSD.org> This is a multi-part message in MIME format. --_----------=_170239930978840 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: gdt Date: Tue Dec 12 16:41:49 UTC 2023 Modified Files: pkgsrc/mk/compiler: pcc.mk Log Message: pcc.mk: Adapt c99 flags Change the commented-out flag setting from testing USE_LANGUAGES, which won't work with new-style FORCE_C_STD, to setting _C_STD_FLAG.c99, which compiler.mk will add via wrappers. This is a comment-only change; the new code awaits testing much as the old code did. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 pkgsrc/mk/compiler/pcc.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_170239930978840 Content-Disposition: inline Content-Length: 775 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/mk/compiler/pcc.mk diff -u pkgsrc/mk/compiler/pcc.mk:1.9 pkgsrc/mk/compiler/pcc.mk:1.10 --- pkgsrc/mk/compiler/pcc.mk:1.9 Tue Jun 27 10:27:21 2023 +++ pkgsrc/mk/compiler/pcc.mk Tue Dec 12 16:41:49 2023 @@ -1,4 +1,4 @@ -# $NetBSD: pcc.mk,v 1.9 2023/06/27 10:27:21 riastradh Exp $ +# $NetBSD: pcc.mk,v 1.10 2023/12/12 16:41:49 gdt Exp $ # # This is the compiler definition for the PCC compiler. # @@ -50,10 +50,9 @@ PKG_${t}:= ${PCCBASE}/bin/${n} . endfor .endfor -# Turn on C99 support if required -#.if !empty(USE_LANGUAGES:Mc99) -#_WRAP_EXTRA_ARGS.CC+= -xc99 -#.endif +# Export flags to turn on c99 mode to the generic processing code in ../compiler.mk. +# TODO: enable and test +# _C_STD_FLAG.c99= -xc99 _LINKER_RPATH_FLAG= -R --_----------=_170239930978840--