From 96de15f4c19dc27721cc9e4a71c57b06e333667d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Fri, 22 Apr 2011 22:58:51 +0100 Subject: [PATCH] Force internal symbol relocations to be solved internally. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1960025..0c009f4 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) -- 2.45.2