--- ./src/apps/ociolutimage/CMakeLists.txt.orig	2012-04-18 09:38:16.000000000 +0930
+++ ./src/apps/ociolutimage/CMakeLists.txt	2012-10-07 21:56:32.463351075 +1030
@@ -10,7 +10,7 @@
     
     add_executable(ociolutimage ${share_src_files} main.cpp)
     
-    target_link_libraries(ociolutimage ${OIIO_LIBRARIES} OpenColorIO dl)
+    target_link_libraries(ociolutimage ${OIIO_LIBRARIES} OpenColorIO ${CMAKE_DL_LIBS})
     
     install(TARGETS ociolutimage DESTINATION ${CMAKE_INSTALL_EXEC_PREFIX}/bin)
 endif()
