From patchwork Tue Nov 28 11:34:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Pierre De Jesus DIAZ X-Patchwork-Id: 56895 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8779A27BBEA; Tue, 28 Nov 2023 11:37:17 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0F2E027BBE9 for ; Tue, 28 Nov 2023 11:37:17 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7wOj-0006xY-EI; Tue, 28 Nov 2023 06:37:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r7wOg-0006uw-Sk for guix-patches@gnu.org; Tue, 28 Nov 2023 06:36:59 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r7wOg-0008CF-KU for guix-patches@gnu.org; Tue, 28 Nov 2023 06:36:58 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r7wOn-0003Oa-F1 for guix-patches@gnu.org; Tue, 28 Nov 2023 06:37:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66263] [PATCH v1 15/22] guix: meson-build-system: Disable PIC for AVR. References: <20230929091333.7623-1-jean@foundationdevices.com> In-Reply-To: <20230929091333.7623-1-jean@foundationdevices.com> Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 Nov 2023 11:37:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66263 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: moreinfo patch To: 66263@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ Received: via spool by 66263-submit@debbugs.gnu.org id=B66263.170117140212896 (code B ref 66263); Tue, 28 Nov 2023 11:37:05 +0000 Received: (at 66263) by debbugs.gnu.org; 28 Nov 2023 11:36:42 +0000 Received: from localhost ([127.0.0.1]:45632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7wOG-0003LK-W1 for submit@debbugs.gnu.org; Tue, 28 Nov 2023 06:36:42 -0500 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:61595) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7wO9-0003Jv-5p for 66263@debbugs.gnu.org; Tue, 28 Nov 2023 06:36:25 -0500 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-40b479ec4a3so14299495e9.2 for <66263@debbugs.gnu.org>; Tue, 28 Nov 2023 03:36:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1701171372; x=1701776172; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=DWTHkM9rb33jrCIyE5UmVCYvAODiNgxeH6Nz0hahKmM=; b=WMkhBpidHbxiWToyBbQyWOPVwAa4FQzMaFv9tRIZfvDg8mhaLp6bXyfEgS98YXApVh SgVt/AYia0zQcmgmNxXA5LX2sbmQWMmhuHYGAKxm99ZaiFhFdQPKPs8rNRevbz2Q7zYK 9hCaKvcUM2SAjfq9JzPBmlAV+xuYqHcEM4zNwVDox1yU4/N48uvo24zc2kFko30GcQfU Nd2JUoAJ1dZK/JHLijNnPvJiFDu3uTe6EdtA2ekj17ROy5OSKwLig+Mtd3nKTnOXR+Qu wFFTIM6HcpI9dgLgxS8AkE6KFWKOXiXX39filYHTB5aftF1r1t5aSoW3k1nNog5M/8f+ /RwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701171372; x=1701776172; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DWTHkM9rb33jrCIyE5UmVCYvAODiNgxeH6Nz0hahKmM=; b=AEpdHFswW0kuo4FD+WorG92zxN+eUbR/X6OHC7GEIFj9I7dYn4wV1IElWQUA2hMBFL O8K/G31aEZCBg7EUMhlpMS5R7J2VTYsrGDNH2+26Z+ZtmhOAcoq6RXe9GiOt2Xg1GWKY M3in4gHn3kLRsEnqBBlhUQMN8cAKYjLunn5QXciMFbGIv+tNbOZr89kVYdFYSnXrJBMX jGbIFiOk/DaYsP166bVVD/fLg9AVlWecsARO6sFL/fvaKC0anCaQ9tSj4gV/a0UiLgdT Tnl/0TI2lOQWOCB+RDzKxKf1IijSQRkq4o0OLsH3Y9srU7S3kD+7eIsEVKj7fSPjFBLc Zecw== X-Gm-Message-State: AOJu0YzzpovrC/Sb4/QK5i3wI8FAQbAbdvA0bYn5dd1kHlDPG2hGCEeV PcBg9NWvDS679Fi72xKk6rLkZFBYRvqpcxO1hEc= X-Google-Smtp-Source: AGHT+IF2Z39BxX/5Xrz+8rhZaU1b5ICXY3v1rgxgmh/6YXbBC1yKmONVHv6BHNzNUSEYwZ1fgO8D3g== X-Received: by 2002:a05:600c:1c0e:b0:40b:3645:4671 with SMTP id j14-20020a05600c1c0e00b0040b36454671mr10743741wms.10.1701171372441; Tue, 28 Nov 2023 03:36:12 -0800 (PST) Received: from jeandudey.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id f7-20020a05600c154700b0040b4cb14d40sm1848769wmg.19.2023.11.28.03.36.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 03:36:12 -0800 (PST) Date: Tue, 28 Nov 2023 12:34:58 +0100 Message-ID: <20231128113510.11214-15-jean@foundationdevices.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Jean-Pierre De Jesus DIAZ X-ACL-Warn: , Jean-Pierre De Jesus DIAZ via Guix-patches X-Patchwork-Original-From: Jean-Pierre De Jesus DIAZ via Guix-patches via From: Jean-Pierre De Jesus DIAZ Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * guix/build-system/meson.scm (make-built-in-options-alist): New procedure. * guix/build-system/meson.scm (make-cross-file): Add 'built-in options' section to cross file. Change-Id: Ifff7f6fb1eb8b0e8ddd04881d22acb863c9e85b2 --- guix/build-system/meson.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/guix/build-system/meson.scm b/guix/build-system/meson.scm index ce3362db31..c30c2000b4 100644 --- a/guix/build-system/meson.scm +++ b/guix/build-system/meson.scm @@ -92,6 +92,13 @@ (define (make-binaries-alist triplet) (ld . ,(string-append triplet "-ld")) (strip . ,(string-append triplet "-strip")))) +(define (make-built-in-options-alist triplet) + (if (target-avr? triplet) + `((b_pie . #f) + (b_staticpic . #f) + (default_library . "static")) + '())) + (define (make-cross-file triplet) (computed-file "cross-file" (with-imported-modules '((guix build meson-configuration)) @@ -102,7 +109,9 @@ (define (make-cross-file triplet) (write-section-header port "host_machine") (write-assignments port '#$(make-machine-alist triplet)) (write-section-header port "binaries") - (write-assignments port '#$(make-binaries-alist triplet)))))))) + (write-assignments port '#$(make-binaries-alist triplet)) + (write-section-header port "built-in options") + (write-assignments port '#$(make-built-in-options-alist triplet)))))))) (define %meson-build-system-modules ;; Build-side modules imported by default.