(define (builtin-link-options) (append (cond (elf (list (conc "-L\"" library-dir "\"") (conc " -Wl,-R\"" (if (and deployed (not netbsd)) "\\$ORIGIN" (prefix "" "lib" (if host-mode INSTALL_LIB_HOME TARGET_RUN_LIB_HOME))) "\"")) ) (else (list (conc "-L\"" library-dir "\"")))) (cond ((get-environment-variable "CHICKEN_C_LIBRARY_PATH") => (lambda (path) (map (cut string-append "-L\"" <> "\"") (string-split path ":;")))) (else '()))))