Minor fixes

This commit is contained in:
retropikzel 2025-06-20 09:01:22 +03:00
parent e2dbcf3ff2
commit bf5f127821

View file

@ -212,8 +212,7 @@
files files
chibi-ffi?)) chibi-ffi?))
(('cond-expand clauses ...) (('cond-expand clauses ...)
(let ((libs+files (map (lambda (c) (let ((libs+files (map (lambda (c) (lp c '() '() '() #f)) clauses)))
(lp c '() '() '() #f)) clauses)))
(lp (cdr ls) (lp (cdr ls)
(cons (cons 'cond-expand (cons (cons 'cond-expand
(map cons (map cons
@ -2048,10 +2047,9 @@
(so-file (string-append base (cond-expand (macosx ".dylib") (so-file (string-append base (cond-expand (macosx ".dylib")
(else ".so")))) (else ".so"))))
(so-flags (cond-expand (macosx '("-dynamiclib" "-Oz")) (so-flags (cond-expand (macosx '("-dynamiclib" "-Oz"))
(else '("-fPIC" "-shared""-Os")))) (else '("-fPIC" "-shared" "-Os"))))
(lib-flags (lib-flags
(map (lambda (lib) (map (lambda (lib) (string-append "-l" lib))
(string-append "-l" lib))
(library-foreign-dependencies impl cfg library))) (library-foreign-dependencies impl cfg library)))
(ffi-cmd `(,@chibi-ffi ,stub-file)) (ffi-cmd `(,@chibi-ffi ,stub-file))
(cc-cmd (cc-cmd