Search the library directory path for the standard library directory
authorMatt Birkholz <matt@birchwood-abbey.net>
Thu, 10 Nov 2016 00:15:36 +0000 (17:15 -0700)
committerMatt Birkholz <matt@birchwood-abbey.net>
Thu, 10 Nov 2016 00:15:36 +0000 (17:15 -0700)
commit147f47f0ee078e2eef21644a91c3d907514390eb
treec6b717397be0a27488c99c94ea907d3261265c26
parent94c71d1d9698c5d32d9df15b69a9881045207d9b
Search the library directory path for the standard library directory

containing lib/ and the built-in object files.  Adjust pathname->
standard-uri and standard-uri->pathname to use this directory instead
of the first directory in the path.

When plugins used --prepend-library to test a shared object, C worlds
failed.  They could not re-load registered object files, nor load
bundled options.  The guarded-system-loader only looked in the first
directory in the path, not the standard library directory.
src/etc/optiondb.scm
src/runtime/load.scm