From e6d3af7a465fc60444ba5d768b9dd3b91ec64fdb Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 9 Dec 2003 09:25:53 +0000 Subject: [PATCH] From Eric Sokolosky, OSX uses DYLD_LIBRARY_PATH for initial library search path instead of LD_LIBRARY_PATH. --- src/osgDB/Registry.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/osgDB/Registry.cpp b/src/osgDB/Registry.cpp index c1d8606de..f44f511ac 100644 --- a/src/osgDB/Registry.cpp +++ b/src/osgDB/Registry.cpp @@ -261,6 +261,13 @@ void Registry::initLibraryFilePathList() convertStringPathIntoFilePathList("C:/Windows/System/",_libraryFilePath); +#elif defined(__DARWIN_OSX__) + + if ((ptr = getenv( "DYLD_LIBRARY_PATH" )) ) + { + convertStringPathIntoFilePathList(ptr, _libraryFilePath); + } + #else if( (ptr = getenv( "LD_LIBRARY_PATH" )) )