nulldrv: Link with -Bsymbolic so vkGetDeviceProcAddress behaves
authorAdam Jackson <ajax@redhat.com>
Wed, 24 Jun 2015 17:39:49 +0000 (13:39 -0400)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Fri, 17 Jul 2015 16:05:24 +0000 (10:05 -0600)
icd/nulldrv/CMakeLists.txt

index 6640bee416a1d9452f4807450171ed6813fbc7b2..2cb69f90d450b923773f6fdc1660efa655c058b1 100644 (file)
@@ -29,5 +29,7 @@ if (WIN32)
     # Add in the DLL "map" file for vkGetProcAddr()
     set_target_properties(VK_nulldrv PROPERTIES
         LINK_FLAGS "/DEF:${PROJECT_SOURCE_DIR}/icd/nulldrv/VK_nulldrv.def")
+else()
+    set_target_properties(VK_nulldrv PROPERTIES
+       LINK_FLAGS "-Wl,-Bsymbolic")
 endif()
-