vulkan/build: search for the correct library
authorMatthew Waters <matthew@centricular.com>
Tue, 16 Feb 2016 04:36:41 +0000 (15:36 +1100)
committerMatthew Waters <matthew@centricular.com>
Tue, 16 Feb 2016 14:13:43 +0000 (01:13 +1100)
SDK 1.0.1 used libvulkan-1.so, 1.0.2 uses libvulkan.so

configure.ac

index 5fd90e33ab278a79601db939b1d999c5989024d8..c50647cca058d33a5c88ea9c2390bd14dc3d927e 100644 (file)
@@ -2905,8 +2905,8 @@ translit(dnm, m, l) AM_CONDITIONAL(USE_VULKAN, true)
 AG_GST_CHECK_FEATURE(VULKAN, [Vulkan elements], vulkan, [
   HAVE_VULKAN=no
   AC_CHECK_HEADER(vulkan/vulkan.h, [
-    AC_CHECK_LIB(vulkan-1, vkCreateDevice, [
-      VULKAN_LIBS="-lvulkan-1"
+    AC_CHECK_LIB(vulkan, vkCreateDevice, [
+      VULKAN_LIBS="-lvulkan"
       AC_SUBST(VULKAN_LIBS)
       dnl TODO check platform support (x11, win32, wayland, android, etc)
       if test "x$HAVE_XCB" = "xyes"; then