mescc: Support -l none (linking without libc).
authorJan Nieuwenhuizen <janneke@gnu.org>
Wed, 15 Aug 2018 15:46:03 +0000 (17:46 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Wed, 15 Aug 2018 15:46:03 +0000 (17:46 +0200)
* module/mescc/mescc.scm (mescc:link): Support -l none.

module/mescc/mescc.scm

index ac0995a474729e14bb9dfa4dcb08d5aff8f39faf..4f575733bbe5a2b7a87cff56c29725b524d27b33 100644 (file)
                                  (list (infos->hex2 options hex2-file-name infos)))))
          (libraries (filter-map (multi-opt 'library) options))
          (libraries (if (pair? libraries) libraries '("c")))
+         (libraries (if (equal? libraries '("none")) '() libraries))
          (hex2-libraries (map (cut find-library options ".o" <>) libraries))
          (hex2-files (append hex2-files hex2-libraries))
          (S-files (append S-files (map (cut find-library options ".S" <>)  libraries)))