Ludovic Courtès writes: >> + (add-before 'configure 'dont-override-rpath >> + (lambda _ >> + (substitute* "CMakeLists.txt" >> + (("SET\\(CMAKE_INSTALL_RPATH .*") "")) > > Is this because cmake fails to determine the right RUNPATH? Perhaps add > a short comment about this. The #:configure-flags "hack" is needed because cmake fails to determine the correct RUNPATH. The CMakeLists.txt substitution is needed because it overrides the one set in #:configure-flags. I added a comment and pushed in ac033c7ba1e14da42a67f493802be5a59dc66a57. Thanks for reviewing!