unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Vinicius Monego <monego@posteo.net>
To: 46939@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#46939] [PATCH 2/4] gnu: gmic: Disable static libraries and enable LTO.
Date: Fri,  5 Mar 2021 01:53:36 -0300	[thread overview]
Message-ID: <20210305045338.26007-1-monego@posteo.net> (raw)
In-Reply-To: <20210305045055.25813-1-monego@posteo.net>

* 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





  reply	other threads:[~2021-03-05  4:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-05  4:50 [bug#46939] [PATCH 1/4] gnu: gmic: Update to 2.9.6 Vinicius Monego
2021-03-05  4:53 ` Vinicius Monego [this message]
2021-03-05  4:53   ` [bug#46939] [PATCH 3/4] gnu: Add gmic-qt Vinicius Monego
2021-03-05  4:53   ` [bug#46939] [PATCH 4/4] gnu: Add gmic-qt-krita Vinicius Monego
2021-03-05  5:14 ` [bug#46939] [PATCH v2 3/4] gnu: Add gmic-qt Vinicius Monego
2021-03-05  5:43 ` [bug#46939] [PATCH v2 4/4] gnu: Add gmic-qt-krita Vinicius Monego
2021-03-06 13:18 ` bug#46939: [PATCH 1/4] gnu: gmic: Update to 2.9.6 Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210305045338.26007-1-monego@posteo.net \
    --to=monego@posteo.net \
    --cc=46939@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).