Ticket #456: patch.diff

File patch.diff, 776 bytes (added by Evans, 14 years ago)
  • DllLoader.cpp

     
    4848// note: on Windows, the extension is replaced with .dll by dlopen.
    4949#ifndef NDEBUG
    5050static const char* suffix = "_dbg.so";
     51static const char* other_Suffix = ".so";
    5152#else
    5253static const char* suffix = ".so";
     54static const char* other_Suffix = "_dbg.so";
    5355#endif
    5456
    5557// (This class is currently only used by 'Collada' and 'AtlasUI' which follow
     
    8991
    9092        m_Handle = dlopen(filename, flags);
    9193
     94        if(! m_Handle)
     95        {
     96            filename = CStr(prefix) + m_Name + other_Suffix;
     97            m_Handle = dlopen(filename, flags);
     98        }
     99
    92100        // open failed (mostly likely SO not found)
    93101        if (! m_Handle)
    94102        {