guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: gnu: openssl: Honor configure-flags.


From: guix-commits
Subject: 01/03: gnu: openssl: Honor configure-flags.
Date: Tue, 13 Jul 2021 03:21:51 -0400 (EDT)

efraim pushed a commit to branch core-updates
in repository guix.

commit 919d687a0497ccf1bea24c9dfca01c9987217261
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Jul 13 09:24:19 2021 +0300

    gnu: openssl: Honor configure-flags.
    
    * gnu/packages/tls.scm (openssl)[arguments]: Adjust custom 'configure
    phase to also use configure-flags.
---
 gnu/packages/tls.scm | 36 +++++++++++++++++++-----------------
 1 file changed, 19 insertions(+), 17 deletions(-)

diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index 297e16d..c5c9977 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -368,7 +368,7 @@ required structures.")
                  #t)))
            '())
         (replace 'configure
-          (lambda* (#:key outputs #:allow-other-keys)
+          (lambda* (#:key outputs configure-flags #:allow-other-keys)
             (let* ((out (assoc-ref outputs "out"))
                    (lib (string-append out "/lib")))
               ;; It's not a shebang so patch-source-shebangs misses it.
@@ -376,24 +376,26 @@ required structures.")
                 (("/usr/bin/env")
                  (string-append (assoc-ref %build-inputs "coreutils")
                                 "/bin/env")))
-              (invoke ,@(if (%current-target-system)
-                          '("./Configure")
-                          '("./config"))
-                      "shared"       ;build shared libraries
-                      "--libdir=lib"
+              (apply
+                invoke ,@(if (%current-target-system)
+                           '("./Configure")
+                           '("./config"))
+                "shared"    ;build shared libraries
+                "--libdir=lib"
 
-                      ;; The default for this catch-all directory is
-                      ;; PREFIX/ssl.  Change that to something more
-                      ;; conventional.
-                      (string-append "--openssldir=" out
-                                     "/share/openssl-"
-                                     ,(package-version this-package))
+                ;; The default for this catch-all directory is
+                ;; PREFIX/ssl.  Change that to something more
+                ;; conventional.
+                (string-append "--openssldir=" out
+                               "/share/openssl-"
+                               ,(package-version this-package))
 
-                      (string-append "--prefix=" out)
-                      (string-append "-Wl,-rpath," lib)
-                      ,@(if (%current-target-system)
-                          '((getenv "CONFIGURE_TARGET_ARCH"))
-                          '())))))
+                (string-append "--prefix=" out)
+                (string-append "-Wl,-rpath," lib)
+                ,@(if (%current-target-system)
+                    '((getenv "CONFIGURE_TARGET_ARCH"))
+                    '())
+                configure-flags))))
         (add-after 'install 'move-static-libraries
           (lambda* (#:key outputs #:allow-other-keys)
             ;; Move static libraries to the "static" output.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]