gnu: openssl-1.1: Fix shared build for the Hurd.
* gnu/packages/tls.scm (openssl-1.1)[arguments]: When building for the Hurd, add phase 'patch-configure'. (openssl)[arguments]: And delete it again.
parent
69142dbea4
commit
fb6f94864d
|
@ -470,6 +470,13 @@ OpenSSL for TARGET."
|
|||
#$(target->openssl-target
|
||||
(%current-target-system))))))
|
||||
#~())
|
||||
#$@(if (target-hurd?)
|
||||
#~((add-after 'unpack 'patch-configure
|
||||
(lambda _
|
||||
(substitute* "config"
|
||||
(("case \"\\$GUESSOS\" in.*" all)
|
||||
(string-append all "hurd-x86*) OUT=hurd-x86;;\n"))))))
|
||||
#~())
|
||||
(replace 'configure
|
||||
(lambda* (#:key configure-flags #:allow-other-keys)
|
||||
;; It's not a shebang so patch-source-shebangs misses it.
|
||||
|
@ -585,7 +592,10 @@ OpenSSL for TARGET."
|
|||
(lambda* (#:key native-inputs inputs #:allow-other-keys)
|
||||
(setenv "HASHBANGPERL"
|
||||
(search-input-file (or native-inputs inputs)
|
||||
"/bin/perl"))))))
|
||||
"/bin/perl"))))
|
||||
#$@(if (target-hurd?)
|
||||
#~((delete 'patch-configure))
|
||||
#~())))
|
||||
((#:configure-flags flags #~'())
|
||||
(if (system-hurd?)
|
||||
#~(append #$flags '("hurd-x86")) ;must not be used when
|
||||
|
|
Reference in New Issue