gnu: hdf4: Fix compiling with gfortran 10.
* gnu/packages/maths.scm (hdf4)[arguments]: Add 'allow-argument-mismatch' flag for gfortran in 'configure-flags'. Fix regexp in 'patch-settings' phase.
This commit is contained in:
parent
f91097c509
commit
979611d4dd
@ -1083,6 +1083,8 @@ computations.")
|
||||
(arguments
|
||||
`(#:parallel-tests? #f
|
||||
#:configure-flags (list "--enable-shared"
|
||||
"FCFLAGS=-fallow-argument-mismatch"
|
||||
"FFLAGS=-fallow-argument-mismatch"
|
||||
(string-append "CPPFLAGS=-I"
|
||||
(assoc-ref %build-inputs "libtirpc")
|
||||
"/include/tirpc"))
|
||||
@ -1116,7 +1118,7 @@ computations.")
|
||||
;; .so-files. We truncate the hashes to avoid
|
||||
;; unnecessary store references to those compilers:
|
||||
(substitute* "libhdf4.settings"
|
||||
(("(/gnu/store/)([a-Z0-9]*)" all prefix hash)
|
||||
(("(/gnu/store/)([0-9A-Za-z]*)" all prefix hash)
|
||||
(string-append prefix (string-take hash 10) "...")))
|
||||
#t))
|
||||
(add-after 'install 'provide-absolute-libjpeg-reference
|
||||
|
Loading…
x
Reference in New Issue
Block a user