Ticket #28806: patch-qgle-libgs.diff

File patch-qgle-libgs.diff, 916 bytes (added by jdswinbank (John Swinbank), 12 years ago)
  • src/gui/qgslibloader.cpp

    diff --git src/gui/qgslibloader.cpp src/gui/qgslibloader.cpp
    index 007d049..f9212af 100644
    int GSLibFunctions::loadLibrary(const QString& location, QString& last_error) { 
    259259        gsapi_revision_t rv;
    260260        /* Try to load the library */
    261261        if (location == "") {
    262                 #ifdef Q_WS_X11
    263                 #if defined(__x86_64__) || defined(__ppc64__) || defined (__s390x__) || defined (__sparc64__)
    264                 // try 64 bit libraries on 64 bit system
    265       tryLocationLoop("/usr/lib64");
    266                 tryLocationLoop("/usr/local/lib64");
    267                 #endif // 64 bit
    268       tryLocationLoop("/usr/lib");
    269                 tryLocationLoop("/usr/local/lib");
    270                 #endif // Q_WS_X11
    271                 #ifdef Q_WS_MAC
    272                 tryLocation("/usr/lib/libgs.dylib");
    273                 tryLocation("/usr/local/lib/libgs.dylib");
    274                 #endif
     262                tryLocation("@@PREFIX@@/lib/libgs.dylib");
    275263        } else {
    276264                m_LibGSLocation = location;
    277265                QString libloc = location;