me
/
guix
Archived
1
0
Fork 0

gnu: js8call: Fix undefined symbol error when starting the program.

* gnu/packages/radio.scm (js8call)[arguments]: Add 'work-around-runtime-bug'
  phase.
master
Guillaume Le Vaillant 2020-05-14 17:04:32 +02:00
parent b79794a763
commit ac4847ebaf
No known key found for this signature in database
GPG Key ID: 6BE8208ADF21FE3F
1 changed files with 11 additions and 0 deletions

View File

@ -915,6 +915,17 @@ weak-signal conditions.")
(assoc-ref outputs "out")
"/share")))
#t))
(add-after 'fix-paths 'work-around-runtime-bug
(lambda _
;; Some of the programs in this package fail to find symbols
;; in libm at runtime. Adding libm manually at the end of the
;; library lists when linking the programs seems to help.
;; TODO: find exactly what is wrong in the way the programs
;; are built.
(substitute* "CMakeLists.txt"
(("target_link_libraries \\((.*)\\)" all libs)
(string-append "target_link_libraries (" libs " m)")))
#t))
(add-after 'unpack 'fix-hamlib
(lambda _
(substitute* "CMake/Modules/Findhamlib.cmake"