The rename was an unintentional side effect of my commit
c2d9f8a4ab2e4b555b918d47fe3313f862009e4d and the lib prefix is
misleading given the shared object is not meant to be linked against,
but always loaded via LD_PRELOAD.
)
add_library (glxtrace SHARED glxtrace.cpp trace_write.cpp os_posix.cpp ${CMAKE_CURRENT_BINARY_DIR}/glproc.hpp)
+
+ set_target_properties (glxtrace PROPERTIES
+ PREFIX ""
+ )
+
target_link_libraries (glxtrace dl)
endif ()
* Run the application you want to trace as
- LD_PRELOAD=/path/to/libglxtrace.so /path/to/application
+ LD_PRELOAD=/path/to/glxtrace.so /path/to/application
* View the trace with
static QString
findPreloader()
{
- QString libPath = QString::fromLatin1("%1/libglxtrace.so")
+ QString libPath = QString::fromLatin1("%1/glxtrace.so")
.arg(BUILD_DIR);
QFileInfo fi(libPath);
if (fi.exists())
return libPath;
- libPath = QString::fromLatin1("/usr/local/lib/libglxtrace.so");
+ libPath = QString::fromLatin1("/usr/local/lib/glxtrace.so");
fi = QFileInfo(libPath);
if (fi.exists())
return libPath;
- libPath = QString::fromLatin1("/usr/lib/libglxtrace.so");
+ libPath = QString::fromLatin1("/usr/lib/glxtrace.so");
fi = QFileInfo(libPath);
if (fi.exists())
return libPath;