From patchwork Tue Apr 13 21:18:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Schwartz X-Patchwork-Id: 1899 Return-Path: Delivered-To: patchwork@archlinux.org Received: from mail.archlinux.org [95.216.189.61] by patchwork.archlinux.org with IMAP (fetchmail-6.4.18) for (single-drop); Tue, 13 Apr 2021 21:18:50 +0000 (UTC) Received: from mail.archlinux.org by mail.archlinux.org with LMTP id L0lSI7kKdmBcgQIAK+/4rw (envelope-from ) for ; Tue, 13 Apr 2021 21:18:49 +0000 Received: from luna.archlinux.org (luna.archlinux.org [IPv6:2a01:4f8:160:3033::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by mail.archlinux.org (Postfix) with ESMTPS id DD93A4F3AFA; Tue, 13 Apr 2021 21:18:48 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 81D8F2CFEA; Tue, 13 Apr 2021 21:18:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.archlinux.org; s=luna; t=1618348728; bh=ilOSLKr2O82FJPS3Zwj4AekphhfgYqQ3Rcgl5Kzn0To=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc; b=Zd+DXCUk0eP0h/1rWWZQBkSgdHBvmHVRXJ1yA5ScaxKl7r/3ic0aTxoLuhAdKSzci WzEOSgIUcRGNRFkkUh6naKfcWMgwSmuiO7z2St4V0+Oq85dTl8vRG6cUxpJh7Jd8ej VKrQqQg16NRa8bZEmJzUd0W06pjPFyU5QelxlaVcK1q5gA3FsH8KnBWMLmfwGBxuOF xwhh9Ncd8S3he2RIqf3DOBT6/n5/4udV/Q3q8bRv8RYwOuyIOnTLqGMIA9dsW/5VML VCx9yMxakeNAtQhH5ARZt9nEjWhWQn8uqF1fsq/LhPTFTUx5Sl26LUWBDRB4wbjzFX IngG2rRcYhOu7ufKT7h+zKz0Mnh2V52fW3rZbl6YWWPf0/5E5Z0Ht7Wr/A6UdWjdYx CJkxCiDP5IidHILsup4eHly7KdRZBtR0+VONfpMdjZ+xVq6rqd8pPeQX8OW5bgAJWK Jur/f1D6Z5lmyOxg7X6VHw0V4J7xN76otub8oFrzru5Y/M9UI7wYv2FjF0XrzTOj3Q nx/oQI3PYKaB2grTTLHtX/xQ84fCJwFi3RvB6xLFj4y8vvdK6V5g+nCmMsiTyxJUIv bTiyslaQLsMhb0+CppYxOkfCmcm3iJYgt+/ooGbB99cFzF45Iz5U+sGnfpT1C57P8y 7LmHchnL0E/Q5mTPG0InjIXs= Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 3977D2CF45 for ; Tue, 13 Apr 2021 21:18:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.5 (2021-03-20) on luna.archlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3,RCVD_IN_MSPIKE_H4=0.001,RCVD_IN_MSPIKE_WL=0.001, T_DMARC_POLICY_NONE=0.01 autolearn=failed autolearn_force=no version=3.4.5 X-Spam-BL-Results: [127.0.9.2] [127.0.0.19] Received: from mail.archlinux.org (mail.archlinux.org [95.216.189.61]) by luna.archlinux.org (Postfix) with ESMTPS for ; Tue, 13 Apr 2021 21:18:45 +0000 (UTC) To: arch-projects@archlinux.org Date: Tue, 13 Apr 2021 17:18:30 -0400 Message-Id: <20210413211830.1335462-1-eschwartz@archlinux.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Subject: [arch-projects] [devtools] [PATCH] sync makepkg.conf with the pacman package X-BeenThere: arch-projects@lists.archlinux.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Arch Linux projects development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Eli Schwartz via arch-projects From: Eli Schwartz Reply-To: Arch Linux projects development discussion Cc: Eli Schwartz Errors-To: arch-projects-bounces@lists.archlinux.org Sender: "arch-projects" Authentication-Results: mail.archlinux.org; dkim=pass header.d=lists.archlinux.org header.s=luna header.b=Zd+DXCUk; dmarc=pass (policy=none) header.from=archlinux.org; spf=pass (mail.archlinux.org: domain of arch-projects-bounces@lists.archlinux.org designates 2a01:4f8:160:3033::2 as permitted sender) smtp.mailfrom=arch-projects-bounces@lists.archlinux.org X-Rspamd-Queue-Id: DD93A4F3AFA X-Spamd-Result: default: False [3.79 / 15.00]; HAS_REPLYTO(0.00)[arch-projects@lists.archlinux.org]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[lists.archlinux.org:s=luna]; NEURAL_HAM(-0.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_MISSING_CHARSET(2.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2a01:4f8:160:3033::2]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_ADDR_EQ_FROM(0.00)[]; BROKEN_CONTENT_TYPE(1.50)[]; HAS_LIST_UNSUB(-0.01)[]; RCVD_COUNT_THREE(0.00)[4]; MID_RHS_MATCH_FROMTLD(0.00)[]; MID_RHS_MATCH_TO(1.00)[]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[archlinux.org,none]; DKIM_TRACE(0.00)[lists.archlinux.org:+]; MAILLIST(-0.20)[mailman]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; FROM_NEQ_ENVFROM(0.00)[arch-projects@lists.archlinux.org,arch-projects-bounces@lists.archlinux.org]; FORGED_SENDER_MAILLIST(0.00)[] X-Rspamd-Server: mail.archlinux.org Aside for comments, this implements the buildflags RFC from: https://lists.archlinux.org/pipermail/arch-dev-public/2021-March/030374.html https://gitlab.archlinux.org/archlinux/rfcs/-/merge_requests/3 Signed-off-by: Eli Schwartz --- makepkg-x86_64.conf | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/makepkg-x86_64.conf b/makepkg-x86_64.conf index 3a1384f..16a6247 100644 --- a/makepkg-x86_64.conf +++ b/makepkg-x86_64.conf @@ -38,15 +38,20 @@ CARCH="x86_64" CHOST="x86_64-pc-linux-gnu" #-- Compiler and Linker Flags -CPPFLAGS="-D_FORTIFY_SOURCE=2" -CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt" -CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt" +#CPPFLAGS="" +CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \ + -Wp,-D_FORTIFY_SOURCE=2,-D_GLIBCXX_ASSERTIONS \ + -Wformat -Werror=format-security \ + -fstack-clash-protection -fcf-protection" +CXXFLAGS="$CFLAGS" LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" +#RUSTFLAGS="-C opt-level=2" #-- Make Flags: change this for DistCC/SMP systems #MAKEFLAGS="-j2" #-- Debugging flags DEBUG_CFLAGS="-g -fvar-tracking-assignments" DEBUG_CXXFLAGS="-g -fvar-tracking-assignments" +#DEBUG_RUSTFLAGS="-C debuginfo=2" ######################################################################### # BUILD ENVIRONMENT @@ -89,7 +94,7 @@ BUILDENV=(!distcc color !ccache check !sign) # OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug) -#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512 +#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2 INTEGRITY_CHECK=(md5) #-- Options to be used when stripping binaries. See `man strip' for details. STRIP_BINARIES="--strip-all"