mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
gnu: ocaml-mcl: Add -fcommon to compiler flags.
* gnu/packages/machine-learning.scm (ocaml-mcl)[arguments]: Add -fcommon.
This commit is contained in:
parent
b835d10d61
commit
c8060055de
1 changed files with 2 additions and 2 deletions
|
@ -327,7 +327,7 @@ (define-public ocaml-mcl
|
|||
(substitute* "setup.ml"
|
||||
(("LDFLAGS=-fPIC")
|
||||
(string-append "LDFLAGS=-fPIC\"; \"SHELL=" (which "sh")))
|
||||
(("-std=c89") "-std=gnu99")
|
||||
(("-std=c89") "-std=gnu99 -fcommon")
|
||||
|
||||
;; This is a mutable string, which is no longer supported. Use
|
||||
;; a byte buffer instead.
|
||||
|
@ -340,7 +340,7 @@ (define-public ocaml-mcl
|
|||
((" s;")
|
||||
" s);"))
|
||||
(substitute* "myocamlbuild.ml"
|
||||
(("std=c89") "std=gnu99"))
|
||||
(("std=c89") "std=gnu99 -fcommon"))
|
||||
;; Since we build with a more recent OCaml, we have to use C99 or
|
||||
;; later. This causes problems with the old C code.
|
||||
(substitute* "src/impala/matrix.c"
|
||||
|
|
Loading…
Reference in a new issue