mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: dune-localfunctions: Fix build failure.
* gnu/packages/maths.scm (dune-localfunctions)[arguments]: Add phase 'hide-gfortran'.
This commit is contained in:
parent
f7cbf403ef
commit
109bf6a0e7
1 changed files with 12 additions and 0 deletions
|
@ -4921,6 +4921,18 @@ (define-public dune-localfunctions
|
|||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
;; XXX: localfunctions/test/lagrangeshapefunctiontest.cc includes <fenv.h>
|
||||
;; and fails to find the stdlib types when the gfortran header is used.
|
||||
;; Hide gfortran from CPLUS_INCLUDE_PATH to ensure we get the GCC header.
|
||||
(add-after 'set-paths 'hide-gfortran
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((gfortran (assoc-ref inputs "gfortran")))
|
||||
(setenv "CPLUS_INCLUDE_PATH"
|
||||
(string-join
|
||||
(delete (string-append gfortran "/include/c++")
|
||||
(string-split (getenv "CPLUS_INCLUDE_PATH") #\:))
|
||||
":"))
|
||||
#t)))
|
||||
(add-after 'build 'build-tests
|
||||
(lambda* (#:key make-flags #:allow-other-keys)
|
||||
(apply invoke "make" "build_tests" make-flags))))))
|
||||
|
|
Loading…
Reference in a new issue