Authentication-Results: name.execsw.org; dkim=pass (1024-bit key) header.d=netbsd.org header.i=@netbsd.org header.b=y4jzsqQ5; dkim=pass (1024-bit key) header.d=netbsd.org header.i=@netbsd.org header.b=yOrUL0oO Received: by mail.netbsd.org (Postfix, from userid 605) id 58FBF84E69; Wed, 24 Apr 2024 20:24:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1713990279; bh=UurNWAC45JARHWAHsHL5guzyf+uuYnQ2S+qqdr9d2vU=; h=Date:From:Subject:To:Reply-To:List-Id:List-Unsubscribe; b=y4jzsqQ56ODwxaDn295MQkKGub6PUWetpEuKpZIOihHK1UFV31V4qJlvqEtoWM4ax XiBj8qsd0tuox/nNs6BQi8nvRe+A7cvTbm2/NWDaGR+QsHFiDX3Y0uanHcsQ8wtnjn FiPj51wRL+L75hzJCmOk2UZIfQkJNjEJHNEjZRgM= Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 471DD84D82 for ; Wed, 24 Apr 2024 20:24:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Authentication-Results: mail.netbsd.org (amavisd-new); dkim=pass (1024-bit key) header.d=netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id Zxqm0dXfXHvC for ; Wed, 24 Apr 2024 20:24:37 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 8AA6E84CFA for ; Wed, 24 Apr 2024 20:24:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1713990277; bh=UurNWAC45JARHWAHsHL5guzyf+uuYnQ2S+qqdr9d2vU=; h=Date:From:Subject:To:Reply-To; b=yOrUL0oOWJeeT0ekWeauijGgtG4qMLlFGJ4EoEuEgXcshFbijK5avug1/GXhDw1t5 P2s+UmKZjYZvQaFr4+JJRBUs2G7eMr6TUq75S5lKPxQHm98dgOAET89Pe6gGG/iYzE t5lt3/gbMoGvKIhAVcku3WLz1Ry+BHflm+ZubE/M= Received: by cvs.NetBSD.org (Postfix, from userid 500) id 7C3D9FA2C; Wed, 24 Apr 2024 20:24:37 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1713990277289470" MIME-Version: 1.0 Date: Wed, 24 Apr 2024 20:24:37 +0000 From: "nikita" Subject: CVS commit: pkgsrc/lang/zig To: pkgsrc-changes@NetBSD.org Reply-To: nikita@netbsd.org X-Mailer: log_accum Message-Id: <20240424202437.7C3D9FA2C@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1713990277289470 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: nikita Date: Wed Apr 24 20:24:37 UTC 2024 Modified Files: pkgsrc/lang/zig: application.mk Log Message: zig: update application.mk for 0.12.0 changes. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 pkgsrc/lang/zig/application.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1713990277289470 Content-Disposition: inline Content-Length: 1349 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/lang/zig/application.mk diff -u pkgsrc/lang/zig/application.mk:1.6 pkgsrc/lang/zig/application.mk:1.7 --- pkgsrc/lang/zig/application.mk:1.6 Tue Jun 6 12:41:47 2023 +++ pkgsrc/lang/zig/application.mk Wed Apr 24 20:24:37 2024 @@ -1,4 +1,4 @@ -# $NetBSD: application.mk,v 1.6 2023/06/06 12:41:47 riastradh Exp $ +# $NetBSD: application.mk,v 1.7 2024/04/24 20:24:37 nikita Exp $ # # Common logic to handle zig packages # This is only usable if they include a 'build.zig' file @@ -20,20 +20,21 @@ # ReleaseSmall (-Drelease-small=true) # Medium runtime performance, Safety checks disabled, Slow compilation speed # Small binary size -ZIGBUILDMODE?= -Drelease-safe=true +ZIGBUILDMODE?= --release=safe ZIGCPUMODE?= -Dcpu=baseline ZIGBUILDARGS?= ZIGTESTARGS?= +ZIGPIE?= yes TOOL_DEPENDS+= zig-[0-9]*:../../lang/zig USE_LANGUAGES= c #MAKE_ENV+= ZIG_GLOBAL_CACHE_DIR=${WRKSRC}/tmp -# \todo: There is currently an issue building zig packages as RELRO. -#RELRO_SUPPORTED= no -# figure out how to do this for all zig packages: -#ZIGBUILDARGS+= -Dpie=true +.if ${ZIGPIE:Uyes:M[yY][eE][sS]} +ZIGBUILDARGS+= -Dpie=true +.endif +# figure out how to detect support for this in zig packages: #.if ${MKDEBUG:Uyes:M[yY][eE][sS]} && ${INSTALL_UNSTRIPPED:Uyes:tl} == yes #ZIGBUILDARGS+= -Dstrip=true #.endif --_----------=_1713990277289470--