From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id qMN+C8GuM2ZnWAEAe85BDQ:P1 (envelope-from ) for ; Thu, 02 May 2024 17:18:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id qMN+C8GuM2ZnWAEAe85BDQ (envelope-from ) for ; Thu, 02 May 2024 17:18:25 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714663105; h=from:from:sender:sender: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; bh=u5ZbR19oQj9He/mgm2RJ7JZ/k+5R172vGgIVLF+dBtI=; b=eYV6gi74+qMu3J3thqWqulrQOj3aVHRX324d7zYbYyXAn+BS8woZ7Ctzxyeg/cB2yl5Zse 5tQF8eu07LbAtE7r2ZWrSF0rk/i208Vk0xOr2ZH8mNcINWdUOYgjBooLhqkt7KYb1Zs014 sbY/u+esflGq4mLpNFsLDDFce2kg1w0dVhTGJ8xLYAnJvx5RXLnomJns+ux2vBtV2M2xO2 VEkITufgVWuadznd1OuCqM+VjPrLtoqHCD4o3eR06w6TwRewgYI3vMhsfWD3Hkvy8vzOJt I/08HSjhyKz3D0cGzS7B1tgZ3oA1z9HHO7JTsNTDX1Kq39k43MPll3dieshDEw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714663105; a=rsa-sha256; cv=none; b=uPtPIwA9BzHfuWZ9QzMO/2Ie3yeNCx21IJ7aOwPerMEnch9qrW15bOH/+KP776qQh0pl6+ 2coatRq0fVl+07juoDCwbASIXJz99DEwa4GJ2UWtk1QOsmt+KKcysF9QqULQ0nGtdlCo9C H/e3LhqcL7QRcjdOcmpvZxeceiiqn/GLYNa1M+CQtMfL2ytATclRGm/anEgUHgl/kOT3ej QyCiJ3bLgYTd0zcZh1SzWCupbPFMGT3FEgZe/WfKunWMdNFOK0+bAyShSJCPqyoOZEGyp6 U6RVSZLkAC1CHdSTzrmxCSx+ard/Ahfl+SXLYOUgCYBUDDB457fwXCCA3Obmsg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" 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 08CCB384CA for ; Thu, 02 May 2024 17:18:25 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2YBw-00062z-MD; Thu, 02 May 2024 11:17:48 -0400 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 1s2YBq-0005yz-RQ for bug-guix@gnu.org; Thu, 02 May 2024 11:17:43 -0400 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 1s2YBq-0003UH-Fr for bug-guix@gnu.org; Thu, 02 May 2024 11:17:42 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s2YCC-000799-9X for bug-guix@gnu.org; Thu, 02 May 2024 11:18:04 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#40316: [PATCH v4 2/5] gnu: nspr: Fix cross-compilation. Resent-From: Christina O'Donnell Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 02 May 2024 15:18:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40316 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 40316@debbugs.gnu.org Cc: zhengjunjie@iscas.ac.cn, vagrant@reproducible-builds.org, steve@futurile.net Received: via spool by 40316-submit@debbugs.gnu.org id=B40316.171466303127422 (code B ref 40316); Thu, 02 May 2024 15:18:04 +0000 Received: (at 40316) by debbugs.gnu.org; 2 May 2024 15:17:11 +0000 Received: from localhost ([127.0.0.1]:44353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2YBL-00078E-5Q for submit@debbugs.gnu.org; Thu, 02 May 2024 11:17:11 -0400 Received: from vmi993448.contaboserver.net ([194.163.141.236]:59082 helo=mutix.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2YB4-00076X-PW for 40316@debbugs.gnu.org; Thu, 02 May 2024 11:17:10 -0400 Received: from [86.132.246.87] (host81-152-149-149.range81-152.btcentralplus.com [81.152.149.149]) (Authenticated sender: cdo) by mutix.org (Postfix) with ESMTPSA id CA32DA63B48; Thu, 2 May 2024 17:16:31 +0200 (CEST) From: Christina O'Donnell Date: Thu, 2 May 2024 16:15:56 +0100 Message-ID: <1ea4518f8c971f69a4731da7559c7ab322ff77ed.1714662574.git.cdo@mutix.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -1.89 X-Spam-Score: -1.89 X-Migadu-Queue-Id: 08CCB384CA X-Migadu-Scanner: mx11.migadu.com X-TUID: DOCfsDcjhmR3 From: Zheng Junjie * gnu/packages/nss.scm (nspr)[arguments]<#:configure-flags>: When cross-compilation, Add HOST_CC=gcc. Change-Id: I337f217f153f8cc3a713906643d6fab9115056e9 Signed-off-by: Zheng Junjie --- gnu/packages/nss.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/packages/nss.scm b/gnu/packages/nss.scm index 459e53bc1c..0baafe2f37 100644 --- a/gnu/packages/nss.scm +++ b/gnu/packages/nss.scm @@ -71,7 +71,10 @@ (define-public nspr #~(list "--disable-static" "--enable-64bit" (string-append "LDFLAGS=-Wl,-rpath=" - (assoc-ref %outputs "out") "/lib")) + (assoc-ref %outputs "out") "/lib") + #$@(if (%current-target-system) + #~("HOST_CC=gcc") + #~())) ;; Use fixed timestamps for reproducibility. #:make-flags #~'("SH_DATE='1970-01-01 00:00:01'" ;; This is epoch 1 in microseconds. -- 2.41.0