Commit d513c74e authored by sabouring's avatar sabouring Committed by Jean-Baptiste Kempf

contrib: fix ldl linking error of x265

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 342cbdb3
......@@ -26,6 +26,7 @@ x265: x265-$(X265_VERSION).tar.bz2 .sum-x265
rm -Rf $@-$(X265_VERSION)
mkdir -p $@-$(X265_VERSION)
$(BZCAT) "$<" | (cd $@-$(X265_VERSION) && tar xv --strip-components=1)
$(APPLY) $(SRC)/x265/x265-ldl-linking.patch
$(call pkg_static,"source/x265.pc.in")
$(MOVE)
......
--- x265-1.9/source/CMakeLists.txt.orig 2016-01-25 06:16:50.000000000 +0100
+++ x265-1.9/source/CMakeLists.txt 2016-07-10 13:36:14.759323966 +0200
@@ -566,7 +566,7 @@
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()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment