Oops, I meant

(arguments
 ...
 #phases
 (modify-phases %standard-phases
   (add-before 'check 'check-set-library-path
      (lambda _
        (setenv "LIBRARY_PATH" (getcwd)))))) ; or wherever the library is; 
maybe extend the existing LIBRARY_PATH instead if needed.

Since setenv's environment variables survive phase switches it's fine to just 
set it beforehand...

Reply via email to