[Piglit] [PATCH] libpiglit: Do not set CMAKE_SOVERSION on OpenBSD.

Vinson Lee vlee at freedesktop.org
Sat Oct 18 15:44:20 PDT 2014


This patch fixes build regression on OpenBSD introduced with commit
4efb025fcac0b37d04ab759ab15055f27cea94f8 'libpiglit: Set CMAKE SOVERSION
for internal libraries to "0"'.

Linking CXX shared library ../../../../lib/libpiglitutil_gl.so
/usr/bin/ld: cannot find -llibpiglitutil.so.0
collect2: ld returned 1 exit status
target_api/gl/tests/util/CMakeFiles/piglitutil_gl.dir/build.make:515: recipe for target
'lib/libpiglitutil_gl.so.0' failed

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84969
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 cmake/piglit_util.cmake | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cmake/piglit_util.cmake b/cmake/piglit_util.cmake
index 45143d2..411fa54 100644
--- a/cmake/piglit_util.cmake
+++ b/cmake/piglit_util.cmake
@@ -84,6 +84,8 @@ function(piglit_add_library name)
         install(TARGETS ${name} DESTINATION ${PIGLIT_INSTALL_LIBDIR}/lib)
     endif(WIN32)
     add_dependencies(${name} piglit_dispatch_gen)
-    set_target_properties(${name} PROPERTIES SOVERSION "0")
+    if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
+        set_target_properties(${name} PROPERTIES SOVERSION "0")
+    endif()
 
 endfunction(piglit_add_library)
-- 
1.8.5.3



More information about the Piglit mailing list