From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CFseGrK5QWAfZAAA0tVLHw (envelope-from ) for ; Fri, 05 Mar 2021 04:55:14 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id ANHrFbK5QWCOXQAAbx9fmQ (envelope-from ) for ; Fri, 05 Mar 2021 04:55:14 +0000 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 aspmx2.migadu.com (Postfix) with ESMTPS id B028D14462 for ; Fri, 5 Mar 2021 05:55:13 +0100 (CET) Received: from localhost ([::1]:41700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lI2Ua-0002Qw-PI for larch@yhetil.org; Thu, 04 Mar 2021 23:55:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41630) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lI2UQ-0002Qk-2H for guix-patches@gnu.org; Thu, 04 Mar 2021 23:55:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49229) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lI2UP-0007PE-QH for guix-patches@gnu.org; Thu, 04 Mar 2021 23:55:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lI2UP-0002GZ-PI for guix-patches@gnu.org; Thu, 04 Mar 2021 23:55:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46939] [PATCH 2/4] gnu: gmic: Disable static libraries and enable LTO. References: <20210305045055.25813-1-monego@posteo.net> In-Reply-To: <20210305045055.25813-1-monego@posteo.net> Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Mar 2021 04:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46939 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46939@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 46939-submit@debbugs.gnu.org id=B46939.16149200458605 (code B ref 46939); Fri, 05 Mar 2021 04:55:01 +0000 Received: (at 46939) by debbugs.gnu.org; 5 Mar 2021 04:54:05 +0000 Received: from localhost ([127.0.0.1]:60769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lI2TV-0002Ej-EE for submit@debbugs.gnu.org; Thu, 04 Mar 2021 23:54:05 -0500 Received: from mout01.posteo.de ([185.67.36.65]:46961) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lI2TU-0002ED-07 for 46939@debbugs.gnu.org; Thu, 04 Mar 2021 23:54:04 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 3E7F016005C for <46939@debbugs.gnu.org>; Fri, 5 Mar 2021 05:53:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1614920038; bh=aTeYGo16//I9fhRuS/5bCHTYfzmD7yeDKswmt0Cg2Rw=; h=From:To:Cc:Subject:Date:From; b=G3dU7pmCpObIB45feBlMV04QeWAKxadm6scCo8FKtG/sJ9YkPkufzI0Sjzccuag5A uobbM/JKJFFdwy8YwB6jwMX33LPALODW0Rt4Ps9tveuQoJedct1Z5EV7dkHe+skW/R 9NDnLyXsYYMS/woE89gtFS4Gk5QynsquwYesFfHqPYPaGE3qXRoiKHL5Vq6ygzfJgt ZasDILG4wIlxTFHqkPWmgcYPw5i350VRktTaEB9nCnoVJEpCUz2Y2oSVvKcgPmra1l 1cV+zwS5WDC4ZakUrLJWI8sOOqlIsrPGbl3LEJzupxZBrJUQ442obq8/EQz+F9z0ze LTpiHpOA4HuPQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DsFkX0hQqz9rxP; Fri, 5 Mar 2021 05:53:55 +0100 (CET) From: Vinicius Monego Date: Fri, 5 Mar 2021 01:53:36 -0300 Message-Id: <20210305045338.26007-1-monego@posteo.net> X-Mailer: git-send-email 2.30.1 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1614920114; 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:dkim-signature; bh=qRemRZk7YGmN7pzKkMipHvYdxGtFiahPajc+CLY0zT0=; b=c2fULe8oCMNr8J9m16b3x/dj5w5VWDXmSWfPbYkn1tvDlMlisjwBdn0DtNdh5F68JzPKql LEGdcp4623WSLQ44MrRz8GI6lmSzfQ4quLjdSfje33NIK88Olc9YrOazf3vT7oJ/3sHRdh ka1reGbvdA1RvXuG6JeqMjohVSrfdk0cpPLzqktT9DcCtD6CEZRvqaDVntccMwbgMHwmWp yxtb5CjfTHJ1O5Ocq/yG7t/AmZMiBoyDPVSNDX53LOXZB50mY+/X5EsbHhger7C5weaptf jWwVw6HL3dsVWGosxw/kLg1Gc3AtkksrEf4wXttj0D4HFu4ke1220a9m5QyEYA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614920114; a=rsa-sha256; cv=none; b=hB6UaLntetvtP1jHLNRuJaaMnMawNYyBlGzmlfs+TM80oY6oGIWbk5NbafLPZD6+2AIT6I UC7YbxCakLhPa8001lBhIDoQ04rE0GYNzkY4JyiEfGxMaiN9jiG6LRsiCP4KUy9rrCGCbl BdP10KBCTgmdNCOKD83K+BQnXFV2Ef4393Eo1PcVmjlhxIMfz7cOsSjPSZQGFclGGyA3yJ XKAXeOzHfmLstdAE7oolYg9XGpyf/bvrNG8VRAJ8FioHmTotEsoOHOcn9e+OtGOnb4EvvR L9EGsLY8Y+toeH6ROEsqO3q+1tupGlSXIpux1T2bUeDzN5hjuqLQ8qOzHOt88w== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=G3dU7pmC; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx2.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.74 Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=G3dU7pmC; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx2.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: B028D14462 X-Spam-Score: 3.74 X-Migadu-Scanner: scn0.migadu.com X-TUID: Gw8qSRJoCpj6 * gnu/packages/image-processing.scm (gmic)[arguments]: Pass "-DBUILD_LIB_STATIC=OFF", "-DENABLE_DYNAMIC_LINKING=ON" and "-DENABLE_LTO=ON" to #:configure-flags. Add phase to set LDFLAGS. --- gnu/packages/image-processing.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm index 0b5c792b56..81b90d87ec 100644 --- a/gnu/packages/image-processing.scm +++ b/gnu/packages/image-processing.scm @@ -613,7 +613,18 @@ due to its architecture which automatically parallelises the image workflows.") (base32 "06n1dcskky7aqg3a0cp7biwz8agc4xqvr8091l2wsvgib98yhbyj")))) (build-system cmake-build-system) (arguments - `(#:tests? #f)) ;there are no tests + `(#:tests? #f ;there are no tests + #:configure-flags '("-DBUILD_LIB_STATIC=OFF" + "-DENABLE_DYNAMIC_LINKING=ON" + "-DENABLE_LTO=ON") + #:phases + (modify-phases %standard-phases + (add-before 'configure 'set-LDFLAGS + (lambda* (#:key inputs outputs #:allow-other-keys) + (setenv "LDFLAGS" + (string-append + "-Wl,-rpath=" + (assoc-ref outputs "out") "/lib"))))))) (native-inputs `(("pkg-config" ,pkg-config))) (inputs -- 2.30.1