]> git.cworth.org Git - apitrace/commitdiff
Force internal symbol relocations to be solved internally.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Fri, 22 Apr 2011 21:58:51 +0000 (22:58 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 23 Apr 2011 10:06:58 +0000 (11:06 +0100)
CMakeLists.txt

index 1960025e471ad946c2d7893a51a1cf77b9917c3c..0c009f48a1e940867e27d3f1984cb7547f5dbd5d 100755 (executable)
@@ -213,7 +213,10 @@ else ()
     add_library (glxtrace SHARED glxtrace.cpp trace_write.cpp os_posix.cpp ${CMAKE_CURRENT_BINARY_DIR}/glproc.hpp)
 
     set_target_properties (glxtrace PROPERTIES
+        # avoid the default "lib" prefix
         PREFIX ""
+        # prevent symbol relocations internal to our wrapper library to be overwritten by the application
+        LINK_FLAGS "-Wl,-Bsymbolic -Wl,-Bsymbolic-functions"
     )
 
     target_link_libraries (glxtrace dl)