Skip to content
Snippets Groups Projects
Unverified Commit ac4847eb authored by Guillaume Le Vaillant's avatar Guillaume Le Vaillant
Browse files

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

* gnu/packages/radio.scm (js8call)[arguments]: Add 'work-around-runtime-bug'
  phase.
parent b79794a7
No related branches found
No related tags found
No related merge requests found
...@@ -915,6 +915,17 @@ (define-public js8call ...@@ -915,6 +915,17 @@ (define-public js8call
(assoc-ref outputs "out") (assoc-ref outputs "out")
"/share"))) "/share")))
#t)) #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 (add-after 'unpack 'fix-hamlib
(lambda _ (lambda _
(substitute* "CMake/Modules/Findhamlib.cmake" (substitute* "CMake/Modules/Findhamlib.cmake"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment