diff options
| author | Mark H Weaver <mhw@netris.org> | 2015-07-17 03:31:28 -0400 |
|---|---|---|
| committer | Mark H Weaver <mhw@netris.org> | 2015-07-17 03:31:28 -0400 |
| commit | e12027179f136766609fb8dbc920f5705d62fc95 (patch) | |
| tree | b7186101339586de6f32d70a89ba6167cdec977f /gnu | |
| parent | 2fdc68274282a0e6243c706ea6d97785be4ead3b (diff) | |
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.
Diffstat (limited to 'gnu')
| -rw-r--r-- | 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 61a26ce662f..090f64afaf9 100644 --- a/gnu/packages/tls.scm +++ b/gnu/packages/tls.scm | |||
| @@ -190,7 +190,7 @@ required structures.") | |||
| 190 | (build-system gnu-build-system) | 190 | (build-system gnu-build-system) |
| 191 | (native-inputs `(("perl" ,perl))) | 191 | (native-inputs `(("perl" ,perl))) |
| 192 | (arguments | 192 | (arguments |
| 193 | '(#:parallel-build? #f | 193 | `(#:parallel-build? #f |
| 194 | #:parallel-tests? #f | 194 | #:parallel-tests? #f |
| 195 | #:test-target "test" | 195 | #:test-target "test" |
| 196 | #:phases | 196 | #:phases |
| @@ -202,7 +202,13 @@ required structures.") | |||
| 202 | (system* "./config" | 202 | (system* "./config" |
| 203 | "shared" ; build shared libraries | 203 | "shared" ; build shared libraries |
| 204 | "--libdir=lib" | 204 | "--libdir=lib" |
| 205 | (string-append "--prefix=" out))))) | 205 | (string-append "--prefix=" out) |
| 206 | ;; XXX FIXME: Work around a code generation bug in GCC | ||
| 207 | ;; 4.9.3 on ARM when compiled with -mfpu=neon. | ||
| 208 | ,@(if (and (not (%current-target-system)) | ||
| 209 | (string-prefix? "armhf" (%current-system))) | ||
| 210 | '("-mfpu=vfpv3") | ||
| 211 | '()))))) | ||
| 206 | (alist-cons-before | 212 | (alist-cons-before |
| 207 | 'patch-source-shebangs 'patch-tests | 213 | 'patch-source-shebangs 'patch-tests |
| 208 | (lambda* (#:key inputs native-inputs #:allow-other-keys) | 214 | (lambda* (#:key inputs native-inputs #:allow-other-keys) |
