]> git.cworth.org Git - apitrace/commitdiff
Fix MacOSX build.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 23 Apr 2011 10:26:46 +0000 (11:26 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 23 Apr 2011 10:26:46 +0000 (11:26 +0100)
CMakeLists.txt

index 0c009f48a1e940867e27d3f1984cb7547f5dbd5d..9dcb14f33a31f0158d30826b0527a21f7f6146ec 100755 (executable)
@@ -215,10 +215,16 @@ else ()
     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"
     )
 
+    # Prevent symbol relocations internal to our wrapper library to be
+    # overwritten by the application.
+    if (NOT APPLE)
+        set_target_properties (glxtrace PROPERTIES
+            LINK_FLAGS "-Wl,-Bsymbolic -Wl,-Bsymbolic-functions"
+        )
+    endif (NOT APPLE)
+
     target_link_libraries (glxtrace dl)
 endif ()