From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sCzRFbUO7GEDDgAAgWs5BA (envelope-from ) for ; Sat, 22 Jan 2022 15:03:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8NA7ErUO7GEkSgEAauVa8A (envelope-from ) for ; Sat, 22 Jan 2022 15:03:33 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D0D852821A for ; Sat, 22 Jan 2022 15:03:32 +0100 (CET) Received: from localhost ([::1]:54938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nBGzL-0001AV-Ks for larch@yhetil.org; Sat, 22 Jan 2022 09:03:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nB4OJ-0002tM-Sh for help-guix@gnu.org; Fri, 21 Jan 2022 19:36:27 -0500 Received: from w1.tutanota.de ([81.3.6.162]:52720) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nB4OI-00087b-29 for help-guix@gnu.org; Fri, 21 Jan 2022 19:36:27 -0500 Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id 88E22FBF63E for ; Sat, 22 Jan 2022 00:36:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1642811782; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=yG/db5p/zaF5DdTpgCHCq5drIhHMXYYxN9hys66KXTo=; b=yP1ocmIPYwf88tw9c7aEdIFlhf8Hb0ruZF4ygX37bF3CqsGbdXiT0mutLIdBLhD+ tSQI4OgBtC5get1peezuyL8zXYJrzf5dYPBqJBIYhHVLLwi5VyPMOrJZhmnYfPqIvkH amW0Jma+0tgg5eQcnO2MCVMBqIi1x04ofst2LxWBTdcmP4JzI+Aw+nUQAd590erFgHm Ryp1Jt114N+e1BMFT63CglJcaHNIAQ2lPbITPVAREWyusGL8CKK+v9Dw0Q76X1wXr4o yanVqxHPaTVaLIwZSu77M1jheIaNIB2VaNiDM8wkeOKdJibn+d/7gGpd3e0spk6TMdm YiNS7y3/bQ== Date: Sat, 22 Jan 2022 01:36:22 +0100 (CET) To: help-guix@gnu.org Message-ID: Subject: How to define custom hardened gcc? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=81.3.6.162; envelope-from=kiasoc5@tutanota.com; helo=w1.tutanota.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 22 Jan 2022 09:03:22 -0500 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" Reply-to: kiasoc5@tutanota.com From: kiasoc5--- via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642860213; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=yG/db5p/zaF5DdTpgCHCq5drIhHMXYYxN9hys66KXTo=; b=cSBUP38HWUqSW5mH4f0pW22r31KjtpvnenS5S/hW9e8aagBBl/wZJw8dwmlHeWt0kg198e H/wJ/oHex+/P4MK8a9Gh51LGvYqTpmJbySOhJYNoAL8TRdRym4Vy6P3Ks1elGo/HHYD42B mdlTyJv3Mw1iYahL3lXpqMWl7lbZZMMcPWWUhA68HEC3Cnp5WOSCGwgjMSBeU8g5C8zkDs VX1+sdf5evyuLk2y7h8b4R31nRxNy+j9K+LSWylRflmNIAnjE+MKB5ORN47QzaTOQRNLcA oFUcKvjm/fJx12oIKoJBX3PA3jxNZpUyBdEKwuATpgZmRLtSmPQnvOknv0uUtg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642860213; a=rsa-sha256; cv=none; b=mBtHKXldgLkQglqgxzZBSUpyzTwaowxonspC+sjCvktM8taUM7DaP5pZh0rKEa8N1Tbv0Y 6Qxcdp2SB1GiYGprgjhTkT4mmbnVC7d8MzIpnR415dcurTEr9ajmGcoxLHYWER/n+GZB3v NDF55113c1zqaWVQX2uIhC3BHdFDHCj2o3btLg0w6stUSXKCXp+htuO5LrXdKJ04hcHwxq Hzy5GXcRhExioZ4Knz5yvU6lcmpszc2sZI7TayDQF+6+3CBVVqbcLF5WAyXdRKg94+E5GY V4eyBQQ/FK/ilZf0EQcJpixYOb5DSFPbVcHpai816KGs7dTzhL9wstXT5NgqUw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tutanota.com header.s=s1 header.b=yP1ocmIP; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.63 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tutanota.com header.s=s1 header.b=yP1ocmIP; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D0D852821A X-Spam-Score: -2.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: 0AzkEE2cm7hB Dear Guixers, I want to build gcc with --enable-default-ssp and --enable-default-pie, and= have all packages built with gcc to be built by my hardened gcc, since Gui= x does not have a hardened toolchain yet. How might I define a custom gcc that I can recompile all my packages with? = I have this in mind but am not sure if it works. (define-public gcc =C2=A0 (package =C2=A0=C2=A0=C2=A0 (inherit gcc) =C2=A0=C2=A0=C2=A0 (arguments =C2=A0=C2=A0=C2=A0=C2=A0 (substitute-keyword-arguments (package-arguments g= cc) =C2=A0=C2=A0=C2=A0=C2=A0 ((#:configure-flags flags =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 `(append (list "--enable-default-ssp" = "--enable-default-pie") =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ,flags))= ))))) Thanks, kiasoc5