[vlc-devel] [PATCH] contrib: fix ldl linking error of x265
Gilles Sabourin
gilles.sabourin at free.fr
Sun Jul 10 15:21:38 CEST 2016
---
contrib/src/x265/rules.mak | 1 +
contrib/src/x265/x265-ldl-linking.patch | 11 +++++++++++
2 files changed, 12 insertions(+)
create mode 100644 contrib/src/x265/x265-ldl-linking.patch
diff --git a/contrib/src/x265/rules.mak b/contrib/src/x265/rules.mak
index 05237e2..fd2f175 100644
--- a/contrib/src/x265/rules.mak
+++ b/contrib/src/x265/rules.mak
@@ -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)
diff --git a/contrib/src/x265/x265-ldl-linking.patch b/contrib/src/x265/x265-ldl-linking.patch
new file mode 100644
index 0000000..2148b60
--- /dev/null
+++ b/contrib/src/x265/x265-ldl-linking.patch
@@ -0,0 +1,11 @@
+--- 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()
--
2.1.4
More information about the vlc-devel
mailing list