--- src/osgDB/Registry.cpp.orig	2009-12-21 03:42:08.000000000 +0100
+++ src/osgDB/Registry.cpp	2009-12-21 03:46:42.000000000 +0100
@@ -730,29 +730,7 @@
 
 std::string Registry::createLibraryNameForNodeKit(const std::string& name)
 {
-#if defined(__CYGWIN__)
-    return "cyg"+name+".dll";
-#elif defined(__MINGW32__)
-    return "lib"+name+".dll";
-#elif defined(WIN32)
-    #ifdef _DEBUG
-        return name+OSG_DEBUG_POSTFIX_WITH_QUOTES +".dll";
-    #else
-        return name+".dll";
-    #endif
-#elif macintosh
-    #ifdef _DEBUG
-        return name+OSGDEBUG_POSTFIX_WITH_QUOTES;
-    #else
-        return name;
-    #endif
-#else
-    #ifdef _DEBUG
-        return "lib"+name+OSG_DEBUG_POSTFIX_WITH_QUOTES + ADDQUOTES(OSG_PLUGIN_EXTENSION);
-    #else
-        return "lib"+name+ADDQUOTES(OSG_PLUGIN_EXTENSION);
-    #endif
-#endif
+    return "@PREFIX@/lib/lib"+name+".dylib";
 }
 
 Registry::LoadStatus Registry::loadLibrary(const std::string& fileName)
