--- src/gui/qgslibloader.cpp.orig 2015-08-16 02:51:24.000000000 -0500 +++ src/gui/qgslibloader.cpp 2016-03-31 10:05:55.000000000 -0500 @@ -268,19 +268,7 @@ gsapi_revision_t rv; /* Try to load the library */ if (location == "") { - #ifdef Q_WS_X11 - #if defined(__x86_64__) || defined(__ppc64__) || defined (__s390x__) || defined (__sparc64__) - // try 64 bit libraries on 64 bit system - tryLocationLoop("/usr/lib64"); - tryLocationLoop("/usr/local/lib64"); - #endif // 64 bit - tryLocationLoop("/usr/lib"); - tryLocationLoop("/usr/local/lib"); - #endif // Q_WS_X11 - #ifdef Q_WS_MAC - tryLocation("/usr/lib/libgs.dylib"); - tryLocation("/usr/local/lib/libgs.dylib"); - #endif + tryLocation("@@PREFIX@@/lib/libgs.dylib"); } else { m_LibGSLocation = location; QString libloc = location;