title: How do I link multiple lisp-fasl files into a single file?
body: <p>I started learning lisp and am looking for an efficient way to manage my personal libraries.  </p>
  
  <p>So i thought it would be useful to compile my library into a single fasl-file (containing both package-information and actual implementation), that i can afterwards load with <code>(load "lib.fasl")</code> to include the library. Problem is, the library consists of multiple <em>*.lisp</em>-files, lets say <em>foo.lisp</em> and <em>bar.lisp</em>.  </p>
  
  <p>I came as far as to compile them separately using <code>(compile-file "foo.lisp")</code> and <code>(compile-file "bar.lisp")</code>, respectively.  </p>
  
  <p>Obviously it would be rather messy having to <code>LOAD</code> every file of the library (i.e. <em>foo.fasl</em> and <em>bar.fasl</em>) manually when i want to use them, so i am looking for something like</p>
  
  <pre><code>(link "foo.fasl" "bar.fasl" :output "lib.fasl")
  </code></pre>
  
  <p>or  </p>
  
  <pre><code>(compile-file "foo.lisp" "bar.lisp" :output "lib.fasl")  
  </code></pre>
  
  <p>to produce a single <em>lib.fasl</em>, which I can then <code>LOAD</code>.  </p>
  
  <p>I don't want to use core-files, because I want to be able to combine my libraries flexibly (which would require to create a separate core-file for every possible combination of libraries).  </p>
  
  <p>I searched both the SBCL user-manual for lisp-functions doing this and the SBCL manpage for functionality using the CLI, but I wasn't able to find anything. </p>
  
  <p>I would prefer a solution using SBCL, but I will take anything else too.</p>
  
  <p>Thanks in advance!</p>