[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: openssl: Work around GCC code generation bug on ARM with NEO
From: |
Mark H. Weaver |
Subject: |
01/01: gnu: openssl: Work around GCC code generation bug on ARM with NEON. |
Date: |
Fri, 17 Jul 2015 07:40:14 +0000 |
mhw pushed a commit to branch core-updates
in repository guix.
commit e12027179f136766609fb8dbc920f5705d62fc95
Author: Mark H Weaver <address@hidden>
Date: Fri Jul 17 03:31:28 2015 -0400
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.
---
gnu/packages/tls.scm | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index 61a26ce..090f64a 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -190,7 +190,7 @@ required structures.")
(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 @@ required structures.")
(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)