me
/
guix
Archived
1
0
Fork 0

gnu: ta-lib: Explicitly link math library.

* gnu/packages/finance.scm (ta-lib)[arguments]: Add 'link-math-library' phase.

Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
master
Foo Chuan Wei 2021-10-29 11:06:43 +00:00 committed by Guillaume Le Vaillant
parent cd188b9c6f
commit d4449565ed
No known key found for this signature in database
GPG Key ID: 6BE8208ADF21FE3F
1 changed files with 11 additions and 1 deletions

View File

@ -1768,7 +1768,17 @@ editing on the Web.")
(base32 "0lf69nna0aahwpgd9m9yjzbv2fbfn081djfznssa84f0n7y1xx4z"))))
(build-system gnu-build-system)
(arguments
`(;; Parallel build fails with:
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'link-math-library
(lambda _
(substitute* "src/Makefile.am"
(("ta_common/libta_common.la")
"ta_common/libta_common.la -lm"))
(substitute* "src/Makefile.in"
(("\\$\\(libta_lib_la_LDFLAGS\\) \\$\\(LDFLAGS\\) -o \\$@")
"$(libta_lib_la_LDFLAGS) $(LDFLAGS) -lm -o $@")))))
;; Parallel build fails with:
;; mv -f .deps/gen_code-gen_code.Tpo .deps/gen_code-gen_code.Po
;; mv: cannot stat '.deps/gen_code-gen_code.Tpo': No such file or directory
;; Makefile:254: recipe for target 'gen_code-gen_code.o' failed