From 919d687a0497ccf1bea24c9dfca01c9987217261 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 13 Jul 2021 09:24:19 +0300 Subject: 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(-) (limited to 'gnu') diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm index 297e16dd70..c5c99771dd 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. -- cgit v1.2.3