From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id iBj8A+3QZWU1NwEAauVa8A:P1 (envelope-from ) for ; Tue, 28 Nov 2023 12:37:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iBj8A+3QZWU1NwEAauVa8A (envelope-from ) for ; Tue, 28 Nov 2023 12:37:17 +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 E563860D1E for ; Tue, 28 Nov 2023 12:37:16 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundationdevices.com header.s=google header.b=WMkhBpid; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701171436; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=DWTHkM9rb33jrCIyE5UmVCYvAODiNgxeH6Nz0hahKmM=; b=t0XFKNuiHS96lW3jtaFLZ8fyQDErJgWUAyCk/9ih7/hZ3rPWHPVQEtXgI/fKC+Vq0uYEIx o+AZaGIu2fgJh2d1/cvQyfxIbAgZUEoubyNV47M5rliYVB8vfxRm1egr3XVYBvY9Io8oYX JbDIWolR6bCq+Am0vhuW8oRMr2AMN9bywh6HaBr8QLM4wD8kHLce1iFMFI89ZRBUigjYcX rhqcPpUF2jIc2Jb+ERTQygZZXHzTFln4GWguVD1A2JaCtrbZMo3fM3v6pml2Ok7jkoxLDR FumoCmru1WttczX0+hkKUyZL+5Nt6ry1VCO4LgyeQknHZTahqDWAAnz4YqhSCg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundationdevices.com header.s=google header.b=WMkhBpid; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701171436; a=rsa-sha256; cv=none; b=nlBlirj78F7td2/7IF2fIsVV/+f8/dHQqv1qnqroZXCfX9KoTxMK4YhEKw7RqJdCZADuWB qOpbyh8z3JY//c9jr+WmJTbVe6a5fFrArB11fi9AqWDFFAroWcPGenI+e48pBtwO+X/P/5 zfQ92I5YT4SUxlP0M8AofeDKOaEK29A9B4Mhw99qawHy+EZpeRdLnAGZxgznBLFI7dkfD1 +46RweHU65UQ3uW3UKKp+WvVMZya/h9/cie2AAEdD2XszifI0zfAnPEQevpKIsZL5GKMTh fMvRa8a5Zjw9ZovXFqBKwovzwCu+k7+qv/Tb5No8ubMxY0OTgcuvMC/WlQH9ng== 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 Content-Transfer-Encoding: 8bit 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 From: Jean-Pierre De Jesus DIAZ via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.13 X-Spam-Score: -6.13 X-Migadu-Queue-Id: E563860D1E X-Migadu-Scanner: mx12.migadu.com X-TUID: hqCzk/8JUg8+ * 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. -- 2.41.0