mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: openssl: Work around GCC code generation bug on ARM with NEON.
* gnu/packages/tls.scm (openssl)[arguments]: When compiling natively for armhf, pass -mfpu=vfpv3 to ./config.
This commit is contained in:
parent
2fdc682742
commit
e12027179f
1 changed files with 8 additions and 2 deletions
|
@ -190,7 +190,7 @@ (define-public openssl
|
|||
(build-system gnu-build-system)
|
||||
(native-inputs `(("perl" ,perl)))
|
||||
(arguments
|
||||
'(#:parallel-build? #f
|
||||
`(#:parallel-build? #f
|
||||
#:parallel-tests? #f
|
||||
#:test-target "test"
|
||||
#:phases
|
||||
|
@ -202,7 +202,13 @@ (define-public openssl
|
|||
(system* "./config"
|
||||
"shared" ; build shared libraries
|
||||
"--libdir=lib"
|
||||
(string-append "--prefix=" out)))))
|
||||
(string-append "--prefix=" out)
|
||||
;; XXX FIXME: Work around a code generation bug in GCC
|
||||
;; 4.9.3 on ARM when compiled with -mfpu=neon.
|
||||
,@(if (and (not (%current-target-system))
|
||||
(string-prefix? "armhf" (%current-system)))
|
||||
'("-mfpu=vfpv3")
|
||||
'())))))
|
||||
(alist-cons-before
|
||||
'patch-source-shebangs 'patch-tests
|
||||
(lambda* (#:key inputs native-inputs #:allow-other-keys)
|
||||
|
|
Loading…
Reference in a new issue