Ticket #51015: patch-qgle-libgs.diff

File patch-qgle-libgs.diff, 814 bytes (added by ryandesign (Ryan Carsten Schmidt), 8 years ago)
  • src/gui/qgslibloader.cpp

    old new  
    268268        gsapi_revision_t rv;
    269269        /* Try to load the library */
    270270        if (location == "") {
    271                 #ifdef Q_WS_X11
    272                 #if defined(__x86_64__) || defined(__ppc64__) || defined (__s390x__) || defined (__sparc64__)
    273                 // try 64 bit libraries on 64 bit system
    274                 tryLocationLoop("/usr/lib64");
    275                 tryLocationLoop("/usr/local/lib64");
    276                 #endif // 64 bit
    277                 tryLocationLoop("/usr/lib");
    278                 tryLocationLoop("/usr/local/lib");
    279                 #endif // Q_WS_X11
    280                 #ifdef Q_WS_MAC
    281                 tryLocation("/usr/lib/libgs.dylib");
    282                 tryLocation("/usr/local/lib/libgs.dylib");
    283                 #endif
     271                tryLocation("@@PREFIX@@/lib/libgs.dylib");
    284272        } else {
    285273                m_LibGSLocation = location;
    286274                QString libloc = location;