File VirtualGL-link-libs.patch of Package VirtualGL
diff -urN VirtualGL-2.3.90.old/server/CMakeLists.txt VirtualGL-2.3.90/server/CMakeLists.txt
--- VirtualGL-2.3.90.old/server/CMakeLists.txt 2014-08-29 10:38:25.546968116 +0200
+++ VirtualGL-2.3.90/server/CMakeLists.txt 2014-08-29 11:25:51.529967776 +0200
@@ -84,12 +84,12 @@
\$ENV{DESTDIR}${VGL_FAKELIBDIR}/libGL.so)")
add_library(dlfaker SHARED dlfaker.c)
-target_link_libraries(dlfaker ${LIBDL})
+target_link_libraries(dlfaker ${LIBDL} rrfaker)
install(TARGETS dlfaker DESTINATION ${VGL_LIBDIR})
add_library(gefaker SHARED gefaker.c)
set_target_properties(gefaker PROPERTIES LINK_FLAGS "-z defs")
-target_link_libraries(gefaker ${LIBDL})
+target_link_libraries(gefaker ${LIBDL} rrfaker)
install(TARGETS gefaker DESTINATION ${VGL_LIBDIR})
set(HEADERS ../common/rr.h rrtransport.h)
@@ -149,13 +149,14 @@
set_target_properties(vgltrans_test PROPERTIES LINK_FLAGS "-Wl,-Bsymbolic")
endif()
target_link_libraries(vgltrans_test vglcommon ${FBXFAKERLIB} ${TJPEG_LIBRARY}
- vglsocket)
+ vglsocket rrfaker)
if(CMAKE_SYSTEM_NAME STREQUAL "SunOS" AND CMAKE_COMPILER_IS_GNUCXX)
target_link_libraries(vgltrans_test stdc++)
endif()
add_library(vgltrans_test2 SHARED testplugin2.cpp X11Trans.cpp)
-target_link_libraries(vgltrans_test2 vglcommon ${FBXFAKERLIB} ${TJPEG_LIBRARY})
+target_link_libraries(vgltrans_test2 vglcommon ${FBXFAKERLIB} ${TJPEG_LIBRARY}
+ rrfaker)
if(CMAKE_SYSTEM_NAME STREQUAL "SunOS" AND CMAKE_COMPILER_IS_GNUCXX)
target_link_libraries(vgltrans_test2 stdc++)
endif()