From 6a859d8fc1b064dd9db9f5807b95d621604aab7c Mon Sep 17 00:00:00 2001
From: Gilles Sabourin <gilles.sabourin@free.fr>
Date: Sun, 10 Jul 2016 15:21:38 +0200
Subject: [PATCH 1/3] fix ldl linking error of x265

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
---
 source/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
index 33b6523f1..0ea2487c7 100644
--- a/source/CMakeLists.txt
+++ b/source/CMakeLists.txt
@@ -713,7 +713,7 @@ if(ENABLE_CLI)
         if(WIN32 OR NOT ENABLE_SHARED OR INTEL_CXX)
             # The CLI cannot link to the shared library on Windows, it
             # requires internal APIs not exported from the DLL
-            target_link_libraries(cli x265-static ${PLATFORM_LIBS})
+            target_link_libraries(cli x265-static ${PLATFORM_LIBS} ${CMAKE_DL_LIBS})
         else()
             target_link_libraries(cli x265-shared ${PLATFORM_LIBS})
         endif()
-- 
2.45.0.windows.1

