The current implementation of Parrot_dlopen on OS X doesn't check DYLD_LIBRARY_PATH for a library if set. This behavior differs from how the dlcompat implementation works and how dlopen works on other platforms like linux. It also makes running bytecode that uses loadlib to load system libraries for extensions or running outside of the root parrot directory a pain.
The current implementation of Parrot_dlopen on OS X doesn't check
DYLD_LIBRARY_PATH for a library if set. This behavior differs from how
the dlcompat implementation works and how dlopen works on other
platforms like linux. It also makes running bytecode that uses loadlib
to load system libraries for extensions or running outside of the root
parrot directory a pain.

This patch modifies config/gen/platform/darwin/dl.c to follow the
behavior for checking DYLD_LIBRARY_PATH and DYLD_FALLBACK_LIBRARY_PATH
described in dyld(1).

Courtesy of Matt Kennedy <arturus@gmail.com>


git-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@6587 d31e2699-5ff4-0310-a27c-f18f2fbe73fe

ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot